diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-03-28 23:19:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-28 23:19:23 -0400 |
| commit | 88badb98c74f764f6e4baea3f6c9d3fd16013023 (patch) | |
| tree | 7af0b747a0cbc8cc785bf95cfc3b51c477367394 /src/test/run-pass/thinlto | |
| parent | 8ae1d444cbd8515289818ee3e6c13bf30a7a227a (diff) | |
| parent | 8a91e4d1238b40200724826cc7ef3f7893c6152b (diff) | |
| download | rust-88badb98c74f764f6e4baea3f6c9d3fd16013023.tar.gz rust-88badb98c74f764f6e4baea3f6c9d3fd16013023.zip | |
Rollup merge of #40783 - stepancheg:cursor-new-0, r=aturon
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
