about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-05-04 20:54:02 -0700
committerKevin Ballard <kevin@sb.org>2014-05-08 12:06:22 -0700
commiteab6bb2ece0427d2ec165e510f2abaa84b857900 (patch)
tree09b066f570f067fe927c0cb7cb8b7addf09156c4 /src/libstd
parent752048a27135bdf15c6f00229b04cea7ceeaf739 (diff)
downloadrust-eab6bb2ece0427d2ec165e510f2abaa84b857900.tar.gz
rust-eab6bb2ece0427d2ec165e510f2abaa84b857900.zip
Handle fallout in documentation
Tweak the tutorial's section on vectors and strings, to slightly clarify
the difference between fixed-size vectors, vectors, and slices.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index a89af05c50a..4a53a064610 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -76,7 +76,7 @@ Some examples of obvious things you might want to do
 
     let path = Path::new("message.txt");
     let mut file = BufferedReader::new(File::open(&path));
-    let lines: ~[~str] = file.lines().map(|x| x.unwrap()).collect();
+    let lines: Vec<~str> = file.lines().map(|x| x.unwrap()).collect();
     ```
 
 * Make a simple TCP client connection and request