diff options
| author | Matt Brubeck <mbrubeck@limpet.net> | 2015-04-22 13:57:08 -0700 |
|---|---|---|
| committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-04-22 13:57:08 -0700 |
| commit | b4a6f895caf3d49ad00a0982ef28485385e78d17 (patch) | |
| tree | 36695097da28720f640259a230942a6cc3c72bba /src/libstd/io | |
| parent | 3dbfa74305e6cc347ffdd902a680bb3b9ee2470a (diff) | |
| download | rust-b4a6f895caf3d49ad00a0982ef28485385e78d17.tar.gz rust-b4a6f895caf3d49ad00a0982ef28485385e78d17.zip | |
Explain how to create a Stdin or Stdout
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/stdio.rs | 4 |
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 |
