From 396fdb69de7fb18f24b15c7ad13491b1c1fa7231 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Wed, 8 Jun 2022 10:02:35 -0400 Subject: [PATCH] Make not-equals operator example consistent. Fixes #3189. --- nostarch/appendix.md | 2 +- src/appendix-02-operators.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nostarch/appendix.md b/nostarch/appendix.md index 2c9b5437f1..3993f1f0ca 100644 --- a/nostarch/appendix.md +++ b/nostarch/appendix.md @@ -161,7 +161,7 @@ Table B-1: Operators |----------|---------|-------------|---------------| | `!` | `ident!(...)`, `ident!{...}`, `ident![...]` | Macro expansion | | | `!` | `!expr` | Bitwise or logical complement | `Not` | -| `!=` | `var != expr` | Nonequality comparison | `PartialEq` | +| `!=` | `expr != expr` | Nonequality comparison | `PartialEq` | | `%` | `expr % expr` | Arithmetic remainder | `Rem` | | `%=` | `var %= expr` | Arithmetic remainder and assignment | `RemAssign` | | `&` | `&expr`, `&mut expr` | Borrow | | diff --git a/src/appendix-02-operators.md b/src/appendix-02-operators.md index 43b547015e..bc770c703e 100644 --- a/src/appendix-02-operators.md +++ b/src/appendix-02-operators.md @@ -17,7 +17,7 @@ overload that operator is listed. |----------|---------|-------------|---------------| | `!` | `ident!(...)`, `ident!{...}`, `ident![...]` | Macro expansion | | | `!` | `!expr` | Bitwise or logical complement | `Not` | -| `!=` | `var != expr` | Nonequality comparison | `PartialEq` | +| `!=` | `expr != expr` | Nonequality comparison | `PartialEq` | | `%` | `expr % expr` | Arithmetic remainder | `Rem` | | `%=` | `var %= expr` | Arithmetic remainder and assignment | `RemAssign` | | `&` | `&expr`, `&mut expr` | Borrow | |