core::iter::repeat_with: fix doc tests
This commit is contained in:
parent
55c669c4d9
commit
efa332038c
1 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
|
|||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// #![feature("iterator_repeat_with")]
|
||||
/// #![feature(iterator_repeat_with)]
|
||||
///
|
||||
/// use std::iter;
|
||||
///
|
||||
|
|
@ -185,7 +185,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
|
|||
/// Using mutation and going finite:
|
||||
///
|
||||
/// ```rust
|
||||
/// #![feature("iterator_repeat_with")]
|
||||
/// #![feature(iterator_repeat_with)]
|
||||
///
|
||||
/// use std::iter;
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue