From 84b07e3822cd6fa3c7a60f2546f0778a8d8b7f88 Mon Sep 17 00:00:00 2001 From: LiuYang Date: Fri, 17 Jul 2020 13:54:26 +0800 Subject: [PATCH] Update ch03-02-data-types.md more clear --- src/ch03-02-data-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch03-02-data-types.md b/src/ch03-02-data-types.md index 78dc025..58cdeaf 100644 --- a/src/ch03-02-data-types.md +++ b/src/ch03-02-data-types.md @@ -257,7 +257,7 @@ fn main() { ##### 无效的数组元素访问 -如果我们访问数组结尾之后的元素会发生什么呢?比如你将上面的例子改成下面这样,这可以编译不过在运行时会因错误而退出: +如果我们访问数组结尾之后的元素会发生什么呢?比如你将上面的例子改成下面这样,这可以编译通过,不过在运行时会因错误而退出: 文件名: src/main.rs