mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2026-08-19 12:43:28 +08:00
Updated 'src/programmming_concepts/data_types.md'.
This commit is contained in:
@@ -406,7 +406,7 @@ fn main() {
|
||||
let index: usize = index
|
||||
.trim()
|
||||
.parse()
|
||||
.expect("输入的所以并非一个数字");
|
||||
.expect("输入的索引并非一个数字");
|
||||
|
||||
let element = a[index];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user