Skip to content

Commit 09b1800

Browse files
committed
Fix doctest better
1 parent 0d855eb commit 09b1800

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/iter/sources/generator.rs

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/// # Examples
99
///
1010
/// ```
11+
/// # #[cfg(not(bootstrap))]
12+
/// # {
1113
/// #![feature(iter_macro, coroutines)]
1214
///
1315
/// let it = std::iter::iter!{|| {
@@ -17,6 +19,7 @@
1719
/// } }();
1820
/// let v: Vec<_> = it.collect();
1921
/// assert_eq!(v, [1, 2, 3]);
22+
/// # }
2023
/// ```
2124
#[unstable(feature = "iter_macro", issue = "none", reason = "generators are unstable")]
2225
#[allow_internal_unstable(coroutines, iter_from_coroutine)]

0 commit comments

Comments
 (0)