Elaborate on the io prelude in the book

Fixes #27917
This commit is contained in:
Steve Klabnik 2015-09-30 13:39:59 -04:00
parent 3e6d7243ae
commit 9812eb0ef4

View File

@ -99,9 +99,12 @@ use std::io;
Well 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 its not in the
prelude, youll have to `use` it directly.
prelude, youll 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() {