diff options
| author | Ralph Giles <[email protected]> | 2010-11-03 14:12:30 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-03 15:37:56 -0700 |
| commit | c0382617621b9728aa7e87b4b80928e33c4f338b (patch) | |
| tree | eda01befe31b7445ca4a6edca9800ade47bf76e9 | |
| parent | Fix doc references to 'for each' syntax to match the compiler. (diff) | |
| download | rust-c0382617621b9728aa7e87b4b80928e33c4f338b.tar.xz rust-c0382617621b9728aa7e87b4b80928e33c4f338b.zip | |
Fix documentation: it's (&str s) not (str &s).
| -rw-r--r-- | doc/rust.texi | 2 |
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; |