about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorStepan Koltsov <stepan.koltsov@gmail.com>2017-03-24 05:05:34 +0300
committerStepan Koltsov <stepan.koltsov@gmail.com>2017-03-24 05:05:34 +0300
commit8a91e4d1238b40200724826cc7ef3f7893c6152b (patch)
tree97016a81879cdd20c211d220d7b35a773a6bd51f /src/test/run-pass/thinlto
parente703b33e3e03d1078c8825e1f64ecfb45884f5cb (diff)
downloadrust-8a91e4d1238b40200724826cc7ef3f7893c6152b.tar.gz
rust-8a91e4d1238b40200724826cc7ef3f7893c6152b.zip
Document Cursor::new position is 0
... even if contained `Vec` is not empty. E. g. for

```
let v = vec![10u8, 20];
let mut c = io::Cursor::new(v);
c.write_all(b"aaaa").unwrap();
println!("{:?}", c.into_inner());
```

result is

```
[97, 97, 97, 97]
```

and not

```
[10, 20, 97, 97, 97, 97]
```
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions