@@ -354,7 +354,7 @@ impl<'a> ReadBuf<'a> {
354
354
///
355
355
/// # Panics
356
356
///
357
- /// Panics if the filled region of the buffer would become larger than the intialized region.
357
+ /// Panics if the filled region of the buffer would become larger than the initialized region.
358
358
#[inline]
359
359
pub fn set_filled (& mut self , n : usize ) { ... }
360
360
@@ -365,7 +365,7 @@ impl<'a> ReadBuf<'a> {
365
365
///
366
366
/// # Safety
367
367
///
368
- /// The caller must ensure that `n` unfilled bytes of the buffer have already been initialized.
368
+ /// The caller must ensure that the first `n` unfilled bytes of the buffer have already been initialized.
369
369
#[inline]
370
370
pub unsafe fn assume_init (& mut self , n : usize ) { ... }
371
371
@@ -411,7 +411,7 @@ Thinking back to the `BrokenReader` in the motivation section, the worst an impl
411
411
unsound unsafe code) is to fail to actually write useful data into the buffer. Code using a ` BrokenReader ` may see bad
412
412
data in the buffer, but the bad data at least has defined contents now!
413
413
414
- Note that ` read ` is still a required method of the ` Read ` trait. It can be easily written to delegate to read_buf:
414
+ Note that ` read ` is still a required method of the ` Read ` trait. It can be easily written to delegate to ` read_buf ` :
415
415
416
416
``` rust
417
417
impl Read for SomeReader {
@@ -552,7 +552,7 @@ impl<'a> ReadBufs<'a> {
552
552
553
553
/// Creates a new `ReadBufs` from a set of fully uninitialized buffers.
554
554
///
555
- /// Use `assume_initialized ` if part of the buffers are known to be already initialized.
555
+ /// Use `assume_init ` if part of the buffers are known to be already initialized.
556
556
#[inline]
557
557
pub fn uninit (bufs : & 'a mut [MaybeUninitIoSliceMut <'a >]) -> ReadBufs <'a > { ... }
558
558
0 commit comments