From adf81965bea558217e7dd7796beb8c5b4c847d21 Mon Sep 17 00:00:00 2001 From: Ren Yubin Date: Tue, 7 Feb 2023 23:01:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/basic/ownership/ownership.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` 变量从声明的点开始直到当前作用域的结束都是有效的: