Merge pull request #456 from stjepang/doc-fixes-links

Fix some links in docs
poc-serde-support
Yoshua Wuyts 5 years ago committed by GitHub
commit 84fa4ca068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save