aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRalph Giles <[email protected]>2010-11-03 14:12:30 -0700
committerGraydon Hoare <[email protected]>2010-11-03 15:37:56 -0700
commitc0382617621b9728aa7e87b4b80928e33c4f338b (patch)
treeeda01befe31b7445ca4a6edca9800ade47bf76e9 /doc
parentFix doc references to 'for each' syntax to match the compiler. (diff)
downloadrust-c0382617621b9728aa7e87b4b80928e33c4f338b.tar.xz
rust-c0382617621b9728aa7e87b4b80928e33c4f338b.zip
Fix documentation: it's (&str s) not (str &s).
Diffstat (limited to 'doc')
-rw-r--r--doc/rust.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rust.texi b/doc/rust.texi
index 6ba9d618..1576f4f8 100644
--- a/doc/rust.texi
+++ b/doc/rust.texi
@@ -3149,7 +3149,7 @@ fn read_file_lines(&str path) -> vec[str] @{
note path;
vec[str] r;
file f = open_read(path);
- for each (str &s in lines(f)) @{
+ for each (&str s in lines(f)) @{
vec.append(r,s);
@}
ret r;