small doc fixes

We don't need this &mut, and vec could use []s
auto merge of #19364 : steveklabnik/rust/doc_buffered_reader, r=Gankro

We don't need this &mut, and vec could use []s