Skip to content

Commit

Permalink
Elaborate on the io prelude in the book
Browse files Browse the repository at this point in the history
Fixes #27917
  • Loading branch information
steveklabnik committed Sep 30, 2015
1 parent 3e6d724 commit 9812eb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/doc/trpl/guessing-game.md
Expand Up @@ -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() {
Expand Down

0 comments on commit 9812eb0

Please sign in to comment.