Skip to content

Commit 269d279

Browse files
committed
Fix some broken links in docs.
1 parent ede7f94 commit 269d279

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/libcore/iter/iterator.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,8 @@ pub trait Iterator {
10941094
/// `flatten()` a three-dimensional array the result will be
10951095
/// two-dimensional and not one-dimensional. To get a one-dimensional
10961096
/// structure, you have to `flatten()` again.
1097+
///
1098+
/// [`flat_map()`]: #method.flat_map
10971099
#[inline]
10981100
#[unstable(feature = "iterator_flatten", issue = "48213")]
10991101
fn flatten(self) -> Flatten<Self>

src/libcore/marker.rs

+2
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {}
602602
/// `Pin` pointer.
603603
///
604604
/// This trait is automatically implemented for almost every type.
605+
///
606+
/// [`Pin`]: ../mem/struct.Pin.html
605607
#[unstable(feature = "pin", issue = "49150")]
606608
pub unsafe auto trait Unpin {}
607609

src/libstd/collections/hash/table.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl TaggedHashUintPtr {
7979
///
8080
/// Essential invariants of this structure:
8181
///
82-
/// - if t.hashes[i] == EMPTY_BUCKET, then `Bucket::at_index(&t, i).raw`
82+
/// - if `t.hashes[i] == EMPTY_BUCKET`, then `Bucket::at_index(&t, i).raw`
8383
/// points to 'undefined' contents. Don't read from it. This invariant is
8484
/// enforced outside this module with the `EmptyBucket`, `FullBucket`,
8585
/// and `SafeHash` types.

src/libstd/ffi/c_str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ impl CStr {
11181118
///
11191119
/// [`Cow`]: ../borrow/enum.Cow.html
11201120
/// [`Borrowed`]: ../borrow/enum.Cow.html#variant.Borrowed
1121+
/// [`Owned`]: ../borrow/enum.Cow.html#variant.Owned
11211122
/// [`str`]: ../primitive.str.html
11221123
/// [`String`]: ../string/struct.String.html
11231124
///

0 commit comments

Comments
 (0)