Fix type annotation in guide
This commit is contained in:
parent
ea6f65c5f1
commit
94c170e366
1 changed files with 1 additions and 1 deletions
|
|
@ -1653,7 +1653,7 @@ for e in a.iter() {
|
|||
You can access a particular element of an array with **subscript notation**:
|
||||
|
||||
```{rust}
|
||||
let names = ["Graydon", "Brian", "Niko"]; // names: [&str, 3]
|
||||
let names = ["Graydon", "Brian", "Niko"]; // names: [&str; 3]
|
||||
|
||||
println!("The second name is: {}", names[1]);
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue