diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-15 13:25:09 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-17 10:00:47 -0800 |
| commit | 295b46fc08c8cc6da0a144cd90c401d5b26a1faf (patch) | |
| tree | 4ee01bdee1d5d46215b745454c5aee7a04256c8c /src/libstd/fmt | |
| parent | 77eeddaa481fa083dfa857e5d7dd7f5ab784a9f1 (diff) | |
| download | rust-295b46fc08c8cc6da0a144cd90c401d5b26a1faf.tar.gz rust-295b46fc08c8cc6da0a144cd90c401d5b26a1faf.zip | |
Tweak the interface of std::io
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
Diffstat (limited to 'src/libstd/fmt')
| -rw-r--r-- | src/libstd/fmt/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs index 8de406f306f..a075010bfb2 100644 --- a/src/libstd/fmt/mod.rs +++ b/src/libstd/fmt/mod.rs @@ -242,7 +242,7 @@ actually invoking the `write` function defined in this module. Example usage is: ```rust use std::io; -let mut w = io::mem::MemWriter::new(); +let mut w = io::MemWriter::new(); write!(&mut w as &mut io::Writer, "Hello {}!", "world"); ``` @@ -470,7 +470,7 @@ use prelude::*; use cast; use char::Char; -use io::mem::MemWriter; +use io::MemWriter; use io; use str; use repr; |
