Skip to content

Commit 1cba4fb

Browse files
authored
Update text/0000-read-buf.md
1 parent cae6f2d commit 1cba4fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-read-buf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ impl<'a> ReadBuf<'a> {
269269
#[inline]
270270
pub fn uninit(buf: &'a mut [MaybeUninit<u8>]) -> ReadBuf<'a> { ... }
271271

272-
/// Returns the full size of the buffer.
272+
/// Returns the total capacity of the buffer.
273273
#[inline]
274-
pub fn len(&self) -> usize { ... }
274+
pub fn capacity(&self) -> usize { ... }
275275

276276
/// Returns a shared reference to the filled portion of the buffer.
277277
#[inline]

0 commit comments

Comments
 (0)