From f18d4ff973f59c9bda5702731a0b58fa35b8c7b3 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Wed, 14 Oct 2020 22:56:21 +0800 Subject: [PATCH] Show type for docs slice Chunks --- library/core/src/slice/iter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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