summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-04-22 13:57:08 -0700
committerSteve Klabnik <steve@steveklabnik.com>2015-05-10 14:26:39 -0400
commit41bcb828f4c2fcc0a28b8fa48467e6f51d6ab32e (patch)
tree299ed0ff835e6dd81a151200277f8a3da15ff633 /src/libstd/io
parent4ee11f49c205e93cc5e1d93be7f127e55061aef6 (diff)
downloadrust-41bcb828f4c2fcc0a28b8fa48467e6f51d6ab32e.tar.gz
rust-41bcb828f4c2fcc0a28b8fa48467e6f51d6ab32e.zip
Explain how to create a Stdin or Stdout
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/stdio.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs
index cd6af77daa9..42fad701533 100644
--- a/src/libstd/io/stdio.rs
+++ b/src/libstd/io/stdio.rs
@@ -95,6 +95,8 @@ impl Write for StderrRaw {
 ///
 /// This handle implements the `Read` trait, but beware that concurrent reads
 /// of `Stdin` must be executed with care.
+///
+/// Created by the function `io::stdin()`.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct Stdin {
     inner: Arc<Mutex<BufReader<StdinRaw>>>,
@@ -206,6 +208,8 @@ const OUT_MAX: usize = ::usize::MAX;
 /// Each handle shares a global buffer of data to be written to the standard
 /// output stream. Access is also synchronized via a lock and explicit control
 /// over locking is available via the `lock` method.
+///
+/// Created by the function `io::stdout()`.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct Stdout {
     // FIXME: this should be LineWriter or BufWriter depending on the state of