mirror of
https://github.com/async-rs/async-std.git
synced 2025-03-28 20:16:41 +00:00
Fix some links in docs
This commit is contained in:
parent
282ae064fe
commit
43bb59cd02
3 changed files with 6 additions and 4 deletions
|
@ -190,6 +190,8 @@ extension_trait! {
|
||||||
The ordering of which value is yielded when two futures resolve
|
The ordering of which value is yielded when two futures resolve
|
||||||
simultaneously is intentionally left unspecified.
|
simultaneously is intentionally left unspecified.
|
||||||
|
|
||||||
|
[`race`]: #method.race
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -267,7 +267,7 @@ extension_trait! {
|
||||||
This function returns a new instance of `Read` which will read at most
|
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
|
`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
|
read errors will not count towards the number of bytes read and future
|
||||||
calls to [`read()`] may succeed.
|
calls to [`read`] may succeed.
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ extension_trait! {
|
||||||
|
|
||||||
[`File`]: ../fs/struct.File.html
|
[`File`]: ../fs/struct.File.html
|
||||||
[`Ok(0)`]: ../../std/result/enum.Result.html#variant.Ok
|
[`Ok(0)`]: ../../std/result/enum.Result.html#variant.Ok
|
||||||
[`read()`]: tymethod.read
|
[`read`]: tymethod.read
|
||||||
|
|
||||||
```no_run
|
```no_run
|
||||||
# fn main() -> std::io::Result<()> { async_std::task::block_on(async {
|
# fn main() -> std::io::Result<()> { async_std::task::block_on(async {
|
||||||
|
|
|
@ -1520,7 +1520,7 @@ extension_trait! {
|
||||||
standard library, used in a variety of contexts.
|
standard library, used in a variety of contexts.
|
||||||
|
|
||||||
The most basic pattern in which `collect()` is used is to turn one
|
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.
|
do a bunch of transformations, and then `collect()` at the end.
|
||||||
|
|
||||||
Because `collect()` is so general, it can cause problems with type
|
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(feature = "unstable")]
|
||||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||||
|
|
Loading…
Reference in a new issue