diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-01-08 14:16:16 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-01-08 14:16:16 +0100 |
| commit | 93969734f6a8f38e95c7038c926ab2504e87dad6 (patch) | |
| tree | 811f00346cafb580245e2f2ce049cefbc2f83ea0 /src/libstd/io | |
| parent | 1b193de98af5b8c6e2b50908ea64323b9095a1a4 (diff) | |
| download | rust-93969734f6a8f38e95c7038c926ab2504e87dad6.tar.gz rust-93969734f6a8f38e95c7038c926ab2504e87dad6.zip | |
Add missing links
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/mod.rs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index ad9cf1eed70..33d11ebb350 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -997,9 +997,9 @@ pub trait Write { /// /// Calls to `write` are not guaranteed to block waiting for data to be /// written, and a write which would otherwise block can be indicated through - /// an `Err` variant. + /// an [`Err`] variant. /// - /// If the return value is `Ok(n)` then it must be guaranteed that + /// If the return value is [`Ok(n)`] then it must be guaranteed that /// `0 <= n <= buf.len()`. A return value of `0` typically means that the /// underlying object is no longer able to accept bytes and will likely not /// be able to in the future as well, or that the buffer provided is empty. @@ -1013,9 +1013,13 @@ pub trait Write { /// It is **not** considered an error if the entire buffer could not be /// written to this writer. /// - /// An error of the `ErrorKind::Interrupted` kind is non-fatal and the + /// An error of the [`ErrorKind::Interrupted`] kind is non-fatal and the /// write operation should be retried if there is nothing else to do. /// + /// [`Err`]: ../../std/result/enum.Result.html#variant.Err + /// [`Ok(n)`]: ../../std/result/enum.Result.html#variant.Ok + /// [`ErrorKind::Interrupted`]: ../../std/io/enum.ErrorKind.html#variant.Interrupted + /// /// # Examples /// /// ``` @@ -1061,17 +1065,20 @@ pub trait Write { /// Attempts to write an entire buffer into this write. /// - /// This method will continuously call `write` until there is no more data - /// to be written or an error of non-`ErrorKind::Interrupted` kind is + /// This method will continuously call [`write`] until there is no more data + /// to be written or an error of non-[`ErrorKind::Interrupted`] kind is /// returned. This method will not return until the entire buffer has been /// successfully written or such an error occurs. The first error that is - /// not of `ErrorKind::Interrupted` kind generated from this method will be + /// not of [`ErrorKind::Interrupted`] kind generated from this method will be /// returned. /// /// # Errors /// /// This function will return the first error of - /// non-`ErrorKind::Interrupted` kind that `write` returns. + /// non-[`ErrorKind::Interrupted`] kind that [`write`] returns. + /// + /// [`ErrorKind::Interrupted`]: ../../std/io/enum.ErrorKind.html#variant.Interrupted + /// [`write`]: #tymethod.write /// /// # Examples /// |
