Skip to content

Commit

Permalink
(docs) fixed typos between 算数 and 算术
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxXSoft committed Mar 18, 2024
1 parent d863eac commit a2de2bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/lv3-expr/arithmetic-exprs.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Lv3.2. 算数表达式
# Lv3.2. 算术表达式

本节新增/变更的语法规范如下:

Expand Down
2 changes: 1 addition & 1 deletion docs/misc-app-ref/riscv-insts.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

* **类别:** 指令.
* **汇编格式:** `sll/srl/sra rd, rs1, rs2`.
* **行为:** 对寄存器 `rs1` 进行逻辑左移 (`sll`), 逻辑右移 (`srl`) 或算数右移 (`sra`) 运算, 移位的位数为 `rs2` 寄存器的值, 结果存入 `rd` 寄存器.
* **行为:** 对寄存器 `rs1` 进行逻辑左移 (`sll`), 逻辑右移 (`srl`) 或算术右移 (`sra`) 运算, 移位的位数为 `rs2` 寄存器的值, 结果存入 `rd` 寄存器.

#### mul/div/rem

Expand Down
2 changes: 1 addition & 1 deletion docs/toc.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* [Lv2.3. 测试](/lv2-code-gen/testing)
* [Lv3. 表达式](/lv3-expr/)
* [Lv3.1. 一元表达式](/lv3-expr/unary-exprs)
* [Lv3.2. 算数表达式](/lv3-expr/arithmetic-exprs)
* [Lv3.2. 算术表达式](/lv3-expr/arithmetic-exprs)
* [Lv3.3. 比较和逻辑表达式](/lv3-expr/comp-n-logical-exprs)
* [Lv3.4. 测试](/lv3-expr/testing)
* [Lv4. 常量和变量](/lv4-const-n-var/)
Expand Down

0 comments on commit a2de2bc

Please sign in to comment.