about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Vrána <jakub@vrana.cz>2015-01-06 15:30:22 -0800
committerJakub Vrána <jakub@vrana.cz>2015-01-06 15:30:22 -0800
commit94c170e366607871174119ccd41c7b2ee5ba7ea6 (patch)
tree6200efa8596c963d168468178fc5f71a1f59b382
parentea6f65c5f1a3f84e010d2cef02a0160804e9567a (diff)
downloadrust-94c170e366607871174119ccd41c7b2ee5ba7ea6.tar.gz
rust-94c170e366607871174119ccd41c7b2ee5ba7ea6.zip
Fix type annotation in guide
-rw-r--r--src/doc/guide.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md
index 66551ec499a..87d84464b1a 100644
--- a/src/doc/guide.md
+++ b/src/doc/guide.md
@@ -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]);
 ```