diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-01-12 02:25:51 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-01-12 02:26:04 +0200 |
| commit | 509fc92a9bb6f9a251308476ebf4e76795df60bf (patch) | |
| tree | 06b6f708400f1c7ce8ece748232263d4af3d3a56 /src/libstd/io | |
| parent | 68ebe8141a9d469ed7a7081e7a4a9ff4c82fbff7 (diff) | |
| download | rust-509fc92a9bb6f9a251308476ebf4e76795df60bf.tar.gz rust-509fc92a9bb6f9a251308476ebf4e76795df60bf.zip | |
Removed remnants of `@mut` and `~mut` from comments and the type system.
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/extensions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/io/extensions.rs b/src/libstd/io/extensions.rs index 066dc883597..4e6f64a31e6 100644 --- a/src/libstd/io/extensions.rs +++ b/src/libstd/io/extensions.rs @@ -370,13 +370,13 @@ mod test { count: 0, }; // FIXME (#7049): Figure out some other way to do this. - //let buf = @mut ~[8, 9]; + //let buf = RefCell::new(~[8, 9]); (|| { - //reader.push_bytes(&mut *buf, 4); + //reader.push_bytes(buf.borrow_mut().get(), 4); }).finally(|| { // NB: Using rtassert here to trigger abort on failure since this is a should_fail test // FIXME: #7049 This fails because buf is still borrowed - //rtassert!(*buf == ~[8, 9, 10]); + //rtassert!(buf.borrow().get() == ~[8, 9, 10]); }) } |
