mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 06:47:34 +00:00
core::iter::repeat_with: fix doc tests
This commit is contained in:
parent
55c669c4d9
commit
efa332038c
@ -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;
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user