diff --git a/src/basic/ownership/ownership.md b/src/basic/ownership/ownership.md index fb023112..1c26bf4e 100644 --- a/src/basic/ownership/ownership.md +++ b/src/basic/ownership/ownership.md @@ -85,7 +85,7 @@ int* foo() { 作用域是一个变量在程序中有效的范围, 假如有这样一个变量: ```rust -let s = "hello" +let s = "hello"; ``` 变量 `s` 绑定到了一个字符串字面值,该字符串字面值是硬编码到程序代码中的。`s` 变量从声明的点开始直到当前作用域的结束都是有效的: