core::iter::repeat_with: fix doc tests

This commit is contained in:
Mazdak Farrokhzad 2018-02-12 09:18:22 +01:00
parent 55c669c4d9
commit efa332038c

View File

@ -163,7 +163,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
/// Basic usage: /// Basic usage:
/// ///
/// ``` /// ```
/// #![feature("iterator_repeat_with")] /// #![feature(iterator_repeat_with)]
/// ///
/// use std::iter; /// use std::iter;
/// ///
@ -185,7 +185,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
/// Using mutation and going finite: /// Using mutation and going finite:
/// ///
/// ```rust /// ```rust
/// #![feature("iterator_repeat_with")] /// #![feature(iterator_repeat_with)]
/// ///
/// use std::iter; /// use std::iter;
/// ///