diff options
| author | Ralf Jung <post@ralfj.de> | 2019-07-21 12:47:34 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-07-21 12:47:34 +0200 |
| commit | 8dc5635e13c608757cf0c9c99dac747ed334fbe9 (patch) | |
| tree | 66c32d8cb7b85e95253f26b63f8f153926bb0ca2 /src/libstd | |
| parent | 1301422a6c2e8916560b8cc2f0564f38d8858a75 (diff) | |
| download | rust-8dc5635e13c608757cf0c9c99dac747ed334fbe9.tar.gz rust-8dc5635e13c608757cf0c9c99dac747ed334fbe9.zip | |
read: fix doc comment
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index a8d4d1181aa..e951b575773 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -511,8 +511,8 @@ pub trait Read { /// /// Correspondingly, however, *callers* of this method may not assume any guarantees /// 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 - // 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 /// 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. /// |
