File tree 5 files changed +6
-14
lines changed
5 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,8 @@ struct Node<T> {
50
50
51
51
/// An iterator over the elements of a `LinkedList`.
52
52
///
53
- /// This `struct` is created by the [`iter`] method on [` LinkedList`]. See its
53
+ /// This `struct` is created by [` LinkedList::iter() `]. See its
54
54
/// documentation for more.
55
- ///
56
- /// [`iter`]: LinkedList::iter
57
55
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
58
56
pub struct Iter < ' a , T : ' a > {
59
57
head : Option < NonNull < Node < T > > > ,
@@ -79,10 +77,8 @@ impl<T> Clone for Iter<'_, T> {
79
77
80
78
/// A mutable iterator over the elements of a `LinkedList`.
81
79
///
82
- /// This `struct` is created by the [`iter_mut`] method on [` LinkedList`]. See its
80
+ /// This `struct` is created by [` LinkedList::iter_mut() `]. See its
83
81
/// documentation for more.
84
- ///
85
- /// [`iter_mut`]: LinkedList::iter_mut
86
82
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
87
83
pub struct IterMut < ' a , T : ' a > {
88
84
// We do *not* exclusively own the entire list here, references to node's `element`
Original file line number Diff line number Diff line change 501
501
//! it would internally pass around this structure until it has been determined
502
502
//! where output should go to.
503
503
//!
504
- //! [`usize`]: core::usize
505
- //! [`isize`]: core::isize
506
- //! [`i8`]: core::i8
507
504
//! [`fmt::Result`]: Result
508
505
//! [`Result`]: core::result::Result
509
506
//! [`std::fmt::Error`]: Error
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ impl<T> Rc<T> {
393
393
394
394
/// Returns the inner value, if the `Rc` has exactly one strong reference.
395
395
///
396
- /// Otherwise, an [`Err`][Result] is returned with the same `Rc` that was
396
+ /// Otherwise, an [`Err`] is returned with the same `Rc` that was
397
397
/// passed in.
398
398
///
399
399
/// This will succeed even if there are outstanding weak references.
@@ -1743,7 +1743,6 @@ impl<T> Weak<T> {
1743
1743
/// [`into_raw`]: Weak::into_raw
1744
1744
/// [`upgrade`]: Weak::upgrade
1745
1745
/// [`new`]: Weak::new
1746
- /// [`forget`]: std::mem::forget
1747
1746
#[ stable( feature = "weak_into_raw" , since = "1.45.0" ) ]
1748
1747
pub unsafe fn from_raw ( ptr : * const T ) -> Self {
1749
1748
if ptr. is_null ( ) {
Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ impl String {
492
492
/// `from_utf8_lossy()` will replace any invalid UTF-8 sequences with
493
493
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD], which looks like this: �
494
494
///
495
- /// [byteslice]: core:: slice
495
+ /// [byteslice]: ../../std/primitive. slice.html
496
496
/// [U+FFFD]: core::char::REPLACEMENT_CHARACTER
497
497
///
498
498
/// If you are sure that the byte slice is valid UTF-8, and you don't want
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ impl<T> Arc<T> {
387
387
388
388
/// Returns the inner value, if the `Arc` has exactly one strong reference.
389
389
///
390
- /// Otherwise, an [`Err`][Result] is returned with the same `Arc` that was
390
+ /// Otherwise, an [`Err`] is returned with the same `Arc` that was
391
391
/// passed in.
392
392
///
393
393
/// This will succeed even if there are outstanding weak references.
@@ -1168,7 +1168,7 @@ impl<T: ?Sized> Arc<T> {
1168
1168
/// Returns a mutable reference into the given `Arc`, if there are
1169
1169
/// no other `Arc` or [`Weak`] pointers to the same allocation.
1170
1170
///
1171
- /// Returns [`None`][Option] otherwise, because it is not safe to
1171
+ /// Returns [`None`] otherwise, because it is not safe to
1172
1172
/// mutate a shared value.
1173
1173
///
1174
1174
/// See also [`make_mut`][make_mut], which will [`clone`][clone]
You can’t perform that action at this time.
0 commit comments