Skip to content

Commit 84fa4ca

Browse files
authored
Merge pull request #456 from stjepang/doc-fixes-links
Fix some links in docs
2 parents e14cc2a + 43bb59c commit 84fa4ca

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/future/future/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ extension_trait! {
190190
The ordering of which value is yielded when two futures resolve
191191
simultaneously is intentionally left unspecified.
192192
193+
[`race`]: #method.race
194+
193195
# Examples
194196
195197
```

src/io/read/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,15 @@ extension_trait! {
267267
This function returns a new instance of `Read` which will read at most
268268
`limit` bytes, after which it will always return EOF ([`Ok(0)`]). Any
269269
read errors will not count towards the number of bytes read and future
270-
calls to [`read()`] may succeed.
270+
calls to [`read`] may succeed.
271271
272272
# Examples
273273
274274
[`File`]s implement `Read`:
275275
276276
[`File`]: ../fs/struct.File.html
277277
[`Ok(0)`]: ../../std/result/enum.Result.html#variant.Ok
278-
[`read()`]: tymethod.read
278+
[`read`]: tymethod.read
279279
280280
```no_run
281281
# fn main() -> std::io::Result<()> { async_std::task::block_on(async {

src/stream/stream/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ extension_trait! {
15201520
standard library, used in a variety of contexts.
15211521
15221522
The most basic pattern in which `collect()` is used is to turn one
1523-
collection into another. You take a collection, call [`stream`] on it,
1523+
collection into another. You take a collection, call [`into_stream`] on it,
15241524
do a bunch of transformations, and then `collect()` at the end.
15251525
15261526
Because `collect()` is so general, it can cause problems with type
@@ -1561,7 +1561,7 @@ extension_trait! {
15611561
# }) }
15621562
```
15631563
1564-
[`stream`]: trait.Stream.html#tymethod.next
1564+
[`into_stream`]: trait.IntoStream.html#tymethod.into_stream
15651565
"#]
15661566
#[cfg(feature = "unstable")]
15671567
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]

0 commit comments

Comments
 (0)