We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 695df12 + aa72e54 commit 9652b15Copy full SHA for 9652b15
library/core/src/iter/sources/repeat_n.rs
@@ -59,7 +59,6 @@ use crate::num::NonZeroUsize;
59
/// ```
60
#[inline]
61
#[unstable(feature = "iter_repeat_n", issue = "104434")]
62
-#[doc(hidden)] // waiting on ACP#120 to decide whether to expose publicly
63
pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
64
let mut element = ManuallyDrop::new(element);
65
@@ -79,7 +78,6 @@ pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
79
78
/// See its documentation for more.
80
#[derive(Clone, Debug)]
81
82
83
pub struct RepeatN<A> {
84
count: usize,
85
// Invariant: has been dropped iff count == 0.
0 commit comments