diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index ec257a11465..a0f7f294e6f 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -1976,9 +1976,9 @@ pub trait Iterator { /// // they're the same /// assert_eq!(result, result2); /// ``` - #[inline] #[doc(alias = "reduce")] #[doc(alias = "inject")] + #[inline] #[stable(feature = "rust1", since = "1.0.0")] fn fold(mut self, init: B, mut f: F) -> B where