about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-02-12 09:18:22 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2018-02-12 09:18:22 +0100
commitefa332038c74931738c44f48622c2a99b5a36cf0 (patch)
treef2d71ffb4d1b105f45334f74c8cfaf076b42d689 /src/libcore
parent55c669c4d9f7b245e2c237dc2b5d0390afe2620d (diff)
core::iter::repeat_with: fix doc tests
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter/sources.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs
index d77e8d4db04..b364292f57e 100644
--- a/src/libcore/iter/sources.rs
+++ b/src/libcore/iter/sources.rs
@@ -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;
 ///