Skip to content

Commit 6e6ab1e

Browse files
Rollup merge of #47632 - sdroege:exact-chunks-docs-broken-links, r=kennytm
Fix broken links to other slice functions in chunks/chunks_mut/exact_… …chunk/exact_chunks_mut docs See #47126 (comment)
2 parents 50e3836 + 1756f68 commit 6e6ab1e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/liballoc/slice.rs

+8
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ impl<T> [T] {
630630
/// assert_eq!(iter.next().unwrap(), &['m']);
631631
/// assert!(iter.next().is_none());
632632
/// ```
633+
///
634+
/// [`exact_chunks`]: #method.exact_chunks
633635
#[stable(feature = "rust1", since = "1.0.0")]
634636
#[inline]
635637
pub fn chunks(&self, chunk_size: usize) -> Chunks<T> {
@@ -660,6 +662,8 @@ impl<T> [T] {
660662
/// assert_eq!(iter.next().unwrap(), &['r', 'e']);
661663
/// assert!(iter.next().is_none());
662664
/// ```
665+
///
666+
/// [`chunks`]: #method.chunks
663667
#[unstable(feature = "exact_chunks", issue = "47115")]
664668
#[inline]
665669
pub fn exact_chunks(&self, chunk_size: usize) -> ExactChunks<T> {
@@ -692,6 +696,8 @@ impl<T> [T] {
692696
/// }
693697
/// assert_eq!(v, &[1, 1, 2, 2, 3]);
694698
/// ```
699+
///
700+
/// [`exact_chunks_mut`]: #method.exact_chunks_mut
695701
#[stable(feature = "rust1", since = "1.0.0")]
696702
#[inline]
697703
pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<T> {
@@ -728,6 +734,8 @@ impl<T> [T] {
728734
/// }
729735
/// assert_eq!(v, &[1, 1, 2, 2, 0]);
730736
/// ```
737+
///
738+
/// [`chunks_mut`]: #method.chunks_mut
731739
#[unstable(feature = "exact_chunks", issue = "47115")]
732740
#[inline]
733741
pub fn exact_chunks_mut(&mut self, chunk_size: usize) -> ExactChunksMut<T> {

0 commit comments

Comments
 (0)