about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorNick Sweeting <git@nicksweeting.com>2017-03-28 13:27:46 -0400
committerGitHub <noreply@github.com>2017-03-28 13:27:46 -0400
commitcd2ec7eded8d65b88b4c2fdb26efe1b3c505bd6f (patch)
tree87099d102de79361ad1a38687925dad8658735e6 /src/libstd/io
parent4806f01d7c1f35a1b6f675ff099b86ec6e6c1540 (diff)
downloadrust-cd2ec7eded8d65b88b4c2fdb26efe1b3c505bd6f.tar.gz
rust-cd2ec7eded8d65b88b4c2fdb26efe1b3c505bd6f.zip
add missing import
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 1b0c992ba09..32ead78f6cd 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -150,6 +150,8 @@
 //! on the return value to catch any possible errors:
 //!
 //! ```
+//! use std::io;
+//!
 //! let mut input = String::new();
 //!
 //! io::stdin().read_line(&mut input).unwrap();