-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Improve docs around File and BufReader #35875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @steveklabnik I would like contribute with this =D |
@marti1125 awesome! Please let me know if you need any help |
Hi @steveklabnik could you give some step how to improve this documentation please |
Hey @marti1125: So, the main issue here is explaining in
Does that make sense? |
Opened a PR that addresses this: #38443. |
* Separate functionality into different code blocks * Incorporate `BufReader` example * Fixes rust-lang#35875.
Improve the API examples for `std::fs::File`. Fixes #35875.
Part of #29356 and related to #29300
Inspired by https://www.reddit.com/r/rust/comments/4yinbt/writing_a_jpeg_decoder_in_rust_part_2/d6obhd8?st=is4wut7k&sh=6d31802c
BufReader's talks about why you'd need it, but it's not super clear from File, which is more likely how people will discover this stuff. We should make sure people using File as a Read understand things here.
The text was updated successfully, but these errors were encountered: