Skip to content

Commit 411d617

Browse files
committed
BorrowedBuf docs: Don't mention perma-unstable init feature.
We expect not to stablize the `borrowed_buf_init`. It mostly exists as a feature because it is used in libstd but defined in libcore.
1 parent 504e0f0 commit 411d617

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

library/core/src/io/borrowed_buf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ use crate::ptr;
1717
/// ```
1818
///
1919
/// A `BorrowedBuf` is created around some existing data (or capacity for data) via a unique reference
20-
/// (`&mut`). The `BorrowedBuf` can be configured (e.g., using `clear` or `set_init`), but cannot be
21-
/// directly written. To write into the buffer, use `unfilled` to create a `BorrowedCursor`. The cursor
22-
/// has write-only access to the unfilled portion of the buffer (you can think of it as a
23-
/// write-only iterator).
20+
/// (`&mut`). The `BorrowedBuf` can be configured (e.g., using `clear`), but cannot be directly
21+
/// written. To write into the buffer, use `unfilled` to create a `BorrowedCursor`. The cursor has
22+
/// write-only access to the unfilled portion of the buffer (you can think of it as a write-only
23+
/// iterator).
2424
///
2525
/// The lifetime `'data` is a bound on the lifetime of the underlying data.
2626
pub struct BorrowedBuf<'data> {

0 commit comments

Comments
 (0)