]> git.lizzy.rs Git - rust.git/commitdiff
core::iter::repeat_with: fix doc tests
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 12 Feb 2018 08:18:22 +0000 (09:18 +0100)
committerMazdak Farrokhzad <twingoow@gmail.com>
Mon, 12 Feb 2018 08:18:22 +0000 (09:18 +0100)
src/libcore/iter/sources.rs

index d77e8d4db04a9ecc7afb1e183ca39fc882becdb8..b364292f57e94065f6b3bb37897990cc298e9fe6 100644 (file)
@@ -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;
 ///