1
Fork 0

Rollup merge of #62845 - RalfJung:read, r=rkruppe

read: fix doc comment

No idea how that happened...
This commit is contained in:
Mazdak Farrokhzad 2019-07-22 15:32:23 +02:00 committed by GitHub
commit b94e59cc41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -511,8 +511,8 @@ pub trait Read {
/// ///
/// Correspondingly, however, *callers* of this method may not assume any guarantees /// Correspondingly, however, *callers* of this method may not assume any guarantees
/// about how the implementation uses `buf`. The trait is safe to implement, /// about how the implementation uses `buf`. The trait is safe to implement,
// so it is possible that the code that's supposed to write to the buffer might also read /// 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 /// from it. It is your responsibility to make sure that `buf` is initialized
/// before calling `read`. Calling `read` with an uninitialized `buf` (of the kind one /// before calling `read`. Calling `read` with an uninitialized `buf` (of the kind one
/// obtains via [`MaybeUninit<T>`]) is not safe, and can lead to undefined behavior. /// obtains via [`MaybeUninit<T>`]) is not safe, and can lead to undefined behavior.
/// ///