diff options
| author | bors <bors@rust-lang.org> | 2014-01-10 18:21:21 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-10 18:21:21 -0800 |
| commit | a34727f27657cbed71fb2326dc6f1766fee95a4c (patch) | |
| tree | f6f124acf2ae8f6ab5808ce3ddb7c99a6cd35285 /src/libstd/vec.rs | |
| parent | 5a6ca45c8ad26f1ace1c46e6452155d511d065d8 (diff) | |
| parent | 4fc0452acef1355ba566a30c5bd04ccd3b9acef2 (diff) | |
| download | rust-a34727f27657cbed71fb2326dc6f1766fee95a4c.tar.gz rust-a34727f27657cbed71fb2326dc6f1766fee95a4c.zip | |
auto merge of #11416 : bjz/rust/remove-print-fns, r=alexcrichton
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
Diffstat (limited to 'src/libstd/vec.rs')
| -rw-r--r-- | src/libstd/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index 9964c6842ab..257a1e6340f 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -1317,7 +1317,7 @@ pub trait OwnedVector<T> { /// let v = ~[~"a", ~"b"]; /// for s in v.move_iter() { /// // s has type ~str, not &~str - /// println(s); + /// println!("{}", s); /// } /// ``` fn move_iter(self) -> MoveIterator<T>; |
