We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1301422 commit 8dc5635Copy full SHA for 8dc5635
src/libstd/io/mod.rs
@@ -511,8 +511,8 @@ pub trait Read {
511
///
512
/// Correspondingly, however, *callers* of this method may not assume any guarantees
513
/// about how the implementation uses `buf`. The trait is safe to implement,
514
- // so it is possible that the code that's supposed to write to the buffer might also read
515
- // from it. It is your responsibility to make sure that `buf` is initialized
+ /// so it is possible that the code that's supposed to write to the buffer might also read
+ /// from it. It is your responsibility to make sure that `buf` is initialized
516
/// before calling `read`. Calling `read` with an uninitialized `buf` (of the kind one
517
/// obtains via [`MaybeUninit<T>`]) is not safe, and can lead to undefined behavior.
518
0 commit comments