Skip to content

Commit cc76e09

Browse files
committed
Rollup merge of rust-lang#23608 - nagisa:refine-cursor-docstring, r=steveklabnik
r? @steveklabnik
2 parents 847118f + 90c8592 commit cc76e09

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/libstd/io/cursor.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ use iter::repeat;
1717
use num::Int;
1818
use slice;
1919

20-
/// A `Cursor` is a type which wraps another I/O object to provide a `Seek`
20+
/// A `Cursor` is a type which wraps a non-I/O object to provide a `Seek`
2121
/// implementation.
2222
///
23-
/// Cursors are currently typically used with memory buffer objects in order to
24-
/// allow `Seek` plus `Read` and `Write` implementations. For example, common
25-
/// cursor types include:
23+
/// Cursors are typically used with memory buffer objects in order to allow
24+
/// `Seek`, `Read`, and `Write` implementations. For example, common cursor types
25+
/// include `Cursor<Vec<u8>>` and `Cursor<&[u8]>`.
2626
///
27-
/// * `Cursor<Vec<u8>>`
28-
/// * `Cursor<&[u8]>`
29-
///
30-
/// Implementations of the I/O traits for `Cursor<T>` are not currently generic
27+
/// Implementations of the I/O traits for `Cursor<T>` are currently not generic
3128
/// over `T` itself. Instead, specific implementations are provided for various
3229
/// in-memory buffer types like `Vec<u8>` and `&[u8]`.
3330
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)