Merge pull request #442 from FMLS/patch-1

Update ch03-02-data-types.md
This commit is contained in:
KaiserY 2020-07-17 15:07:53 +08:00 committed by GitHub
commit bb7672c619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ fn main() {
##### 无效的数组元素访问
如果我们访问数组结尾之后的元素会发生什么呢?比如你将上面的例子改成下面这样,这可以编译不过在运行时会因错误而退出:
如果我们访问数组结尾之后的元素会发生什么呢?比如你将上面的例子改成下面这样,这可以编译通过,不过在运行时会因错误而退出:
<span class="filename">文件名: src/main.rs</span>