diff --git a/en/src/compound-types/array.md b/en/src/compound-types/array.md index 281c141..9833ec5 100644 --- a/en/src/compound-types/array.md +++ b/en/src/compound-types/array.md @@ -88,7 +88,7 @@ fn main() { fn main() { let names = [String::from("Sunfei"), "Sunface".to_string()]; - // `Get` returns an Option, it's safe to use + // `Get` returns an Option<&T>, it's safe to use let name0 = names.get(0).unwrap(); // But indexing is not safe @@ -99,4 +99,4 @@ fn main() { ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/array.md)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/array.md)(under the solutions path), but only use it when you need it