diff --git a/library/core/src/slice/iter.rs b/library/core/src/slice/iter.rs index 24f955a70b67e..e6ec40a885b0d 100644 --- a/library/core/src/slice/iter.rs +++ b/library/core/src/slice/iter.rs @@ -1324,8 +1324,9 @@ unsafe impl<'a, T> TrustedRandomAccess for Windows<'a, T> { /// # Example /// /// ``` +/// # use core::slice::Chunks; /// let slice = ['l', 'o', 'r', 'e', 'm']; -/// let iter = slice.chunks(2); +/// let iter: Chunks = slice.chunks(2); /// ``` /// /// [`chunks`]: ../../std/primitive.slice.html#method.chunks