diff --git a/src/future/future/mod.rs b/src/future/future/mod.rs index dad94da..2cd5c7e 100644 --- a/src/future/future/mod.rs +++ b/src/future/future/mod.rs @@ -190,6 +190,8 @@ extension_trait! { The ordering of which value is yielded when two futures resolve simultaneously is intentionally left unspecified. + [`race`]: #method.race + # Examples ``` diff --git a/src/io/read/mod.rs b/src/io/read/mod.rs index ed61590..f5c0a4c 100644 --- a/src/io/read/mod.rs +++ b/src/io/read/mod.rs @@ -267,7 +267,7 @@ extension_trait! { This function returns a new instance of `Read` which will read at most `limit` bytes, after which it will always return EOF ([`Ok(0)`]). Any read errors will not count towards the number of bytes read and future - calls to [`read()`] may succeed. + calls to [`read`] may succeed. # Examples @@ -275,7 +275,7 @@ extension_trait! { [`File`]: ../fs/struct.File.html [`Ok(0)`]: ../../std/result/enum.Result.html#variant.Ok - [`read()`]: tymethod.read + [`read`]: tymethod.read ```no_run # fn main() -> std::io::Result<()> { async_std::task::block_on(async { diff --git a/src/stream/stream/mod.rs b/src/stream/stream/mod.rs index 4ab12a1..b77019d 100644 --- a/src/stream/stream/mod.rs +++ b/src/stream/stream/mod.rs @@ -1520,7 +1520,7 @@ extension_trait! { standard library, used in a variety of contexts. The most basic pattern in which `collect()` is used is to turn one - collection into another. You take a collection, call [`stream`] on it, + collection into another. You take a collection, call [`into_stream`] on it, do a bunch of transformations, and then `collect()` at the end. Because `collect()` is so general, it can cause problems with type @@ -1561,7 +1561,7 @@ extension_trait! { # }) } ``` - [`stream`]: trait.Stream.html#tymethod.next + [`into_stream`]: trait.IntoStream.html#tymethod.into_stream "#] #[cfg(feature = "unstable")] #[cfg_attr(feature = "docs", doc(cfg(unstable)))]