Skip to content

Commit 9d4d0da

Browse files
authored
Auto merge of #36982 - GuillaumeGomez:slice_urls, r=frewsxcv
Add missing urls in slice doc module r? @steveklabnik
2 parents b98cc35 + 89870b3 commit 9d4d0da

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

src/libcollections/slice.rs

+19-7
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636
//!
3737
//! ## Structs
3838
//!
39-
//! There are several structs that are useful for slices, such as `Iter`, which
39+
//! There are several structs that are useful for slices, such as [`Iter`], which
4040
//! represents iteration over a slice.
4141
//!
4242
//! ## Trait Implementations
4343
//!
4444
//! There are several implementations of common traits for slices. Some examples
4545
//! include:
4646
//!
47-
//! * `Clone`
48-
//! * `Eq`, `Ord` - for slices whose element type are `Eq` or `Ord`.
49-
//! * `Hash` - for slices whose element type is `Hash`
47+
//! * [`Clone`]
48+
//! * [`Eq`], [`Ord`] - for slices whose element type are [`Eq`] or [`Ord`].
49+
//! * [`Hash`] - for slices whose element type is [`Hash`].
5050
//!
5151
//! ## Iteration
5252
//!
@@ -73,12 +73,24 @@
7373
//! the element type of the slice is `i32`, the element type of the iterator is
7474
//! `&mut i32`.
7575
//!
76-
//! * `.iter()` and `.iter_mut()` are the explicit methods to return the default
76+
//! * [`.iter()`] and [`.iter_mut()`] are the explicit methods to return the default
7777
//! iterators.
78-
//! * Further methods that return iterators are `.split()`, `.splitn()`,
79-
//! `.chunks()`, `.windows()` and more.
78+
//! * Further methods that return iterators are [`.split()`], [`.splitn()`],
79+
//! [`.chunks()`], [`.windows()`] and more.
8080
//!
8181
//! *[See also the slice primitive type](../../std/primitive.slice.html).*
82+
//!
83+
//! [`Clone`]: ../../std/clone/trait.Clone.html
84+
//! [`Eq`]: ../../std/cmp/trait.Eq.html
85+
//! [`Ord`]: ../../std/cmp/trait.Ord.html
86+
//! [`Iter`]: struct.Iter.html
87+
//! [`Hash`]: ../../std/hash/trait.Hash.html
88+
//! [`.iter()`]: ../../std/primitive.slice.html#method.iter
89+
//! [`.iter_mut()`]: ../../std/primitive.slice.html#method.iter_mut
90+
//! [`.split()`]: ../../std/primitive.slice.html#method.split
91+
//! [`.splitn()`]: ../../std/primitive.slice.html#method.splitn
92+
//! [`.chunks()`]: ../../std/primitive.slice.html#method.chunks
93+
//! [`.windows()`]: ../../std/primitive.slice.html#method.windows
8294
#![stable(feature = "rust1", since = "1.0.0")]
8395

8496
// Many of the usings in this module are only used in the test configuration.

0 commit comments

Comments
 (0)