]> git.lizzy.rs Git - rust.git/commit
Improve the API examples for `std::fs::File`.
authorCorey Farwell <coreyf@rwell.org>
Sun, 18 Dec 2016 01:30:04 +0000 (17:30 -0800)
committerCorey Farwell <coreyf@rwell.org>
Sun, 18 Dec 2016 09:27:47 +0000 (01:27 -0800)
commita664466405344d26ee9b834658bc625466889dbe
treec0791a94780d82ff3f6a1e87f7fdce0125370b4e
parentd250169cb5a96481a3e7c8f9fe05de49f60e5ae5
Improve the API examples for `std::fs::File`.

* Separate functionality into different code blocks
* Incorporate `BufReader` example
 * Fixes https://github.com/rust-lang/rust/issues/35875.
src/libstd/fs.rs