From 509fc92a9bb6f9a251308476ebf4e76795df60bf Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Sun, 12 Jan 2014 02:25:51 +0200 Subject: Removed remnants of `@mut` and `~mut` from comments and the type system. --- src/libstd/io/extensions.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/io') 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]); }) } -- cgit 1.4.1-3-g733a5