Reposition iterator doc alias reduce before inline

This commit is contained in:
Ivan Tham 2020-09-26 00:05:37 +08:00 committed by GitHub
parent 1994cee61a
commit ea0065ad4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<B, F>(mut self, init: B, mut f: F) -> B
where