Documentation for stdout does not mention flushing · Issue #74348 · rust-lang/rust (original) (raw)
From rust-dc/fish-manpage-completions#96 (comment).
The documentation for std::io::stdout() does not mention "flush" anywhere, neither does Stdout
or StdoutLock
. I think it would be helpful for the documentation to indicate the behaviour, i.e. if it should be flushed manually or it's flushed once it goes out of scope.
The same would apply for stderr
. I'm not sure if the behaviour of #23205 has changed since, or whether not documenting flushing was an oversight or intended to allow breakage in that regard.