From 131256699c873e68205d5b8e58f7f8686ed0f394 Mon Sep 17 00:00:00 2001 From: manbucy <1412039603@qq.com> Date: Mon, 7 Feb 2022 16:26:07 +0800 Subject: [PATCH] Update appendix-02-operators.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `%` 取模--> 取余 --- src/appendix-02-operators.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appendix-02-operators.md b/src/appendix-02-operators.md index dcc7ccf..5f3d287 100644 --- a/src/appendix-02-operators.md +++ b/src/appendix-02-operators.md @@ -17,8 +17,8 @@ | `!` | `ident!(...)`, `ident!{...}`, `ident![...]` | 宏展开 | | | `!` | `!expr` | 按位非或逻辑非 | `Not` | | `!=` | `var != expr` | 不等比较 | `PartialEq` | -| `%` | `expr % expr` | 算术取模 | `Rem` | -| `%=` | `var %= expr` | 算术取模与赋值 | `RemAssign` | +| `%` | `expr % expr` | 算术取余 | `Rem` | +| `%=` | `var %= expr` | 算术取余与赋值 | `RemAssign` | | `&` | `&expr`, `&mut expr` | 借用 | | | `&` | `&type`, `&mut type`, `&'a type`, `&'a mut type` | 借用指针类型 | | | `&` | `expr & expr` | 按位与 | `BitAnd` |