mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-31 01:35:33 +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
|
||||
simultaneously is intentionally left unspecified.
|
||||
|
||||
[`race`]: #method.race
|
||||
|
||||
# Examples
|
||||
|
||||
```
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)))]
|
||||
|
|
Loading…
Reference in a new issue