From: Corey Farwell Date: Wed, 29 Mar 2017 03:19:23 +0000 (-0400) Subject: Rollup merge of #40783 - stepancheg:cursor-new-0, r=aturon X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=88badb98c74f764f6e4baea3f6c9d3fd16013023;p=rust.git 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] ``` --- 88badb98c74f764f6e4baea3f6c9d3fd16013023