]> git.lizzy.rs Git - rust.git/commitdiff
Elaborate on the io prelude in the book
authorSteve Klabnik <steve@steveklabnik.com>
Wed, 30 Sep 2015 17:39:59 +0000 (13:39 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Wed, 30 Sep 2015 17:39:59 +0000 (13:39 -0400)
Fixes #27917

src/doc/trpl/guessing-game.md

index 94280aa4a33173505c7abd7565bbd48259472437..db484a28cb02c4a0e57388d8c1a4d51c8954da36 100644 (file)
@@ -99,9 +99,12 @@ use std::io;
 We’ll need to take user input, and then print the result as output. As such, we
 need the `io` library from the standard library. Rust only imports a few things
 by default into every program, [the ‘prelude’][prelude]. If it’s not in the
-prelude, you’ll have to `use` it directly.
+prelude, you’ll have to `use` it directly. There is also a second ‘prelude’, the
+[`io` prelude][ioprelude], which serves a similar function: you import it, and it
+imports a number of useful, `io`-related things.
 
 [prelude]: ../std/prelude/index.html
+[ioprelude]: ../std/io/prelude/index.html
 
 ```rust,ignore
 fn main() {