diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2013-05-19 12:42:00 -0700 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2013-05-19 12:42:00 -0700 |
| commit | 929050de73c1edb22211fa05e891068fe9a1a0d2 (patch) | |
| tree | b5ec1b27897689fb28f970beadf6eec4359b28c3 /src | |
| parent | e0b1bdca5b56a104d8c221cb3bbb7eb16b5fcec4 (diff) | |
Added note about prelude inclusion.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/io.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcore/io.rs b/src/libcore/io.rs index 820d810a36f..feceb9f4b17 100644 --- a/src/libcore/io.rs +++ b/src/libcore/io.rs @@ -1593,7 +1593,8 @@ pub fn stderr() -> @Writer { fd_writer(libc::STDERR_FILENO as c_int, false) } * * # Examples * ~~~ -* core::io::print("hello"); +* // print is imported into the prelude, and so is always available. +* print("hello"); * ~~~ */ pub fn print(s: &str) { @@ -1607,7 +1608,8 @@ pub fn print(s: &str) { * * # Examples * ~~~ -* core::io::println("hello"); +* // println is imported into the prelude, and so is always available. +* println("hello"); * ~~~ */ pub fn println(s: &str) { |
