diff options
| author | Isaac van Bakel <ivb@vanbakel.io> | 2017-08-02 15:16:20 +0100 |
|---|---|---|
| committer | Isaac van Bakel <ivb@vanbakel.io> | 2017-08-02 15:16:20 +0100 |
| commit | 9c854db82b767ddd228dbff1e51bb3eed87464b4 (patch) | |
| tree | 9c9443b74e2eeaa7f56588e0a6972eb59e299a5a /src/libstd/io | |
| parent | d3236a85ffb17a8cce396156965047807648abd7 (diff) | |
| download | rust-9c854db82b767ddd228dbff1e51bb3eed87464b4.tar.gz rust-9c854db82b767ddd228dbff1e51bb3eed87464b4.zip | |
Fixed errors in libstd.
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/cursor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/cursor.rs b/src/libstd/io/cursor.rs index 616b4f47ed3..d986021a18b 100644 --- a/src/libstd/io/cursor.rs +++ b/src/libstd/io/cursor.rs @@ -456,7 +456,7 @@ mod tests { #[test] fn test_slice_reader() { let in_buf = vec![0, 1, 2, 3, 4, 5, 6, 7]; - let mut reader = &mut &in_buf[..]; + let reader = &mut &in_buf[..]; let mut buf = []; assert_eq!(reader.read(&mut buf).unwrap(), 0); let mut buf = [0]; |
