Skip to content

Fix some links in docs #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Nov 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/future/future/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
4 changes: 2 additions & 2 deletions src/io/read/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ 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

[`File`]s implement `Read`:

[`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 {
Expand Down
4 changes: 2 additions & 2 deletions src/stream/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)))]
Expand Down