diff options
| author | Alexis Bourget <alexis.bourget@gmail.com> | 2020-08-18 19:36:52 +0200 | 
|---|---|---|
| committer | Alexis Bourget <alexis.bourget@gmail.com> | 2020-08-18 19:36:52 +0200 | 
| commit | 5d49c0e55a1ab9757c05df44bee4bf50d9d71f9c (patch) | |
| tree | 4c2d1e0bad25736eb63aec987c24464f9ff32e29 /library/std/src/io/cursor.rs | |
| parent | 2c3dc04ea4071805fbd1b07bd726c1daf03c0384 (diff) | |
| download | rust-5d49c0e55a1ab9757c05df44bee4bf50d9d71f9c.tar.gz rust-5d49c0e55a1ab9757c05df44bee4bf50d9d71f9c.zip | |
Move to intra doc links for std::io
Diffstat (limited to 'library/std/src/io/cursor.rs')
| -rw-r--r-- | library/std/src/io/cursor.rs | 14 | 
1 files changed, 5 insertions, 9 deletions
| diff --git a/library/std/src/io/cursor.rs b/library/std/src/io/cursor.rs index f4db5f81450..58343f66f3f 100644 --- a/library/std/src/io/cursor.rs +++ b/library/std/src/io/cursor.rs @@ -9,7 +9,7 @@ use core::convert::TryInto; /// [`Seek`] implementation. /// /// `Cursor`s are used with in-memory buffers, anything implementing -/// `AsRef<[u8]>`, to allow them to implement [`Read`] and/or [`Write`], +/// [`AsRef`]`<[u8]>`, to allow them to implement [`Read`] and/or [`Write`], /// allowing these buffers to be used anywhere you might use a reader or writer /// that does actual I/O. /// @@ -23,12 +23,8 @@ use core::convert::TryInto; /// code, but use an in-memory buffer in our tests. We can do this with /// `Cursor`: /// -/// [`Seek`]: trait.Seek.html -/// [`Read`]: ../../std/io/trait.Read.html -/// [`Write`]: ../../std/io/trait.Write.html -/// [`Vec`]: ../../std/vec/struct.Vec.html -/// [bytes]: ../../std/primitive.slice.html -/// [`File`]: ../fs/struct.File.html +/// [bytes]: crate::slice +/// [`File`]: crate::fs::File /// /// ```no_run /// use std::io::prelude::*; @@ -81,8 +77,8 @@ pub struct Cursor<T> { impl<T> Cursor<T> { /// Creates a new cursor wrapping the provided underlying in-memory buffer. /// - /// Cursor initial position is `0` even if underlying buffer (e.g., `Vec`) - /// is not empty. So writing to cursor starts with overwriting `Vec` + /// Cursor initial position is `0` even if underlying buffer (e.g., [`Vec`]) + /// is not empty. So writing to cursor starts with overwriting [`Vec`] /// content, not with appending to it. /// /// # Examples | 
