Skip to content

Commit 0154814

Browse files
authored
修改变量声明的一处错误表达 (#204)
1 parent e36a6b1 commit 0154814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

course/basic/define-variable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ outline: deep
1616

1717
::: info 🅿️ 提示
1818

19-
目前 Zig 遵循非必要不使用变量原则!也就是不允许使用不会被修改的变量,即尽可能使用常量。
19+
目前 Zig 遵循非必要不使用变量原则!即尽可能使用常量。
2020

2121
同时,zig 还要求所有的非顶层定义的变量(常量)均被使用,如果未被使用编译器会报告错误,但可通过将其分配给 `_` 来解决此问题。
2222

0 commit comments

Comments
 (0)