-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Documentation for flush() function of Write trait is incorrect #34999
Comments
That's a |
If you click on the |
If we changed the function signature in the source from: fn write(&mut self, buf: &[u8]) -> Result<usize>; to: fn write(&mut self, buf: &[u8]) -> io::Result<usize>; would it display the |
fn write(&mut self, buf: &[u8]) -> io::Result<usize>; I'm actually not sure if this is even possible since this line comes straight from |
rustdoc does not pay attention to the way items are declared in that way. |
Triage: no changes here. Not entirely sure this should be fixed, but it's up to the rustdoc team. |
#42066 is more global so let's close this one. |
The flush() function to the write trait is documented (at https://doc.rust-lang.org/std/io/trait.Write.html) as
However this results in the following error in code:
The return value is expected to be Result<(), std::io::Error>.
The text was updated successfully, but these errors were encountered: