Skip to content

Commit a7f067a

Browse files
committed
Intra-doc for iter Sum and Product traits
1 parent 69f43dd commit a7f067a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/iter/traits/accum.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use crate::ops::{Add, Mul};
99
/// [`FromIterator`] this trait should rarely be called directly and instead
1010
/// interacted with through [`Iterator::sum`].
1111
///
12-
/// [`sum`]: ../../std/iter/trait.Sum.html#tymethod.sum
13-
/// [`FromIterator`]: ../../std/iter/trait.FromIterator.html
14-
/// [`Iterator::sum`]: ../../std/iter/trait.Iterator.html#method.sum
12+
/// [`sum`]: #tymethod.sum
13+
/// [`FromIterator`]: crate::iter::FromIterator
14+
/// [`Iterator::sum`]: crate::iter::Iterator::sum
1515
#[stable(feature = "iter_arith_traits", since = "1.12.0")]
1616
pub trait Sum<A = Self>: Sized {
1717
/// Method which takes an iterator and generates `Self` from the elements by
@@ -28,9 +28,9 @@ pub trait Sum<A = Self>: Sized {
2828
/// [`FromIterator`] this trait should rarely be called directly and instead
2929
/// interacted with through [`Iterator::product`].
3030
///
31-
/// [`product`]: ../../std/iter/trait.Product.html#tymethod.product
32-
/// [`FromIterator`]: ../../std/iter/trait.FromIterator.html
33-
/// [`Iterator::product`]: ../../std/iter/trait.Iterator.html#method.product
31+
/// [`product`]: #tymethod.product
32+
/// [`FromIterator`]: crate::iter::FromIterator
33+
/// [`Iterator::product`]: crate::iter::Iterator::product
3434
#[stable(feature = "iter_arith_traits", since = "1.12.0")]
3535
pub trait Product<A = Self>: Sized {
3636
/// Method which takes an iterator and generates `Self` from the elements by

0 commit comments

Comments
 (0)