work on manual
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 6 May 2025 18:59:30 +0000 (11:59 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 6 May 2025 18:59:30 +0000 (11:59 -0700)
rust/doc/src/language/expressions/operators.md

index 23e232abe17faa8edaa45d7f262de3e280f37bcc..f7e3d019e0a511b23b789719dd6732eb77cef8af 100644 (file)
@@ -63,6 +63,20 @@ information.
   True if `A` is false.  If the operand is missing, then the result is
   missing.
 
+The overall truth table for the binary logical operators is:
+
+|`A`|`B`|`A AND B`|`A OR B`|
+|-|-|-|-|
+|false|false|false|false|
+|false|true|false|true|
+|true|false|false|true|
+|true|true|true|true|
+|false|missing|false|missing|
+|true|missing|missing|true|
+|missing|false|false|missing|
+|missing|true|missing|true|
+|missing|missing|missing|missing|
+
 ## Relational Operators
 
 The relational operators take numeric or string operands and produce