Skip to content

Commit 5064c8d

Browse files
committed
Merge pull request #20670 from vrana/patch-2
Fix type annotation in guide Reviewed-by: steveklabnik
2 parents 2e2a2cd + 94c170e commit 5064c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ for e in a.iter() {
16531653
You can access a particular element of an array with **subscript notation**:
16541654

16551655
```{rust}
1656-
let names = ["Graydon", "Brian", "Niko"]; // names: [&str, 3]
1656+
let names = ["Graydon", "Brian", "Niko"]; // names: [&str; 3]
16571657
16581658
println!("The second name is: {}", names[1]);
16591659
```

0 commit comments

Comments
 (0)