We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e6acf0 + 28fbd94 commit 41e3b8bCopy full SHA for 41e3b8b
1 file changed
12-ownership-system/12-01-ownership.md
@@ -28,7 +28,7 @@ int* foo() {
28
上面定义了一个i32类型的标识符a,如果你直接println,你会收到一个error报错:
29
> error: use of possibly uninitialized variable: `a`
30
31
-这是**因为Rust并不会像其他语言一样可以为变量默认初始化值,Rust明确规定变量的初始值必须有程序员自己决定**。
+这是**因为Rust并不会像其他语言一样可以为变量默认初始化值,Rust明确规定变量的初始值必须由程序员自己决定**。
32
33
正确的做法:
34
```rust
0 commit comments