From eab6bb2ece0427d2ec165e510f2abaa84b857900 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Sun, 4 May 2014 20:54:02 -0700 Subject: 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. --- src/libstd/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/io') 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 -- cgit 1.4.1-3-g733a5