Skip to content

Commit 929050d

Browse files
committed
Added note about prelude inclusion.
1 parent e0b1bdc commit 929050d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libcore/io.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,8 @@ pub fn stderr() -> @Writer { fd_writer(libc::STDERR_FILENO as c_int, false) }
15931593
*
15941594
* # Examples
15951595
* ~~~
1596-
* core::io::print("hello");
1596+
* // print is imported into the prelude, and so is always available.
1597+
* print("hello");
15971598
* ~~~
15981599
*/
15991600
pub fn print(s: &str) {
@@ -1607,7 +1608,8 @@ pub fn print(s: &str) {
16071608
*
16081609
* # Examples
16091610
* ~~~
1610-
* core::io::println("hello");
1611+
* // println is imported into the prelude, and so is always available.
1612+
* println("hello");
16111613
* ~~~
16121614
*/
16131615
pub fn println(s: &str) {

0 commit comments

Comments
 (0)