Skip to content

Commit f18d4ff

Browse files
authored
Show type for docs slice Chunks
1 parent 5565241 commit f18d4ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/slice/iter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,8 +1324,9 @@ unsafe impl<'a, T> TrustedRandomAccess for Windows<'a, T> {
13241324
/// # Example
13251325
///
13261326
/// ```
1327+
/// # use core::slice::Chunks;
13271328
/// let slice = ['l', 'o', 'r', 'e', 'm'];
1328-
/// let iter = slice.chunks(2);
1329+
/// let iter: Chunks<char> = slice.chunks(2);
13291330
/// ```
13301331
///
13311332
/// [`chunks`]: ../../std/primitive.slice.html#method.chunks

0 commit comments

Comments
 (0)