1
Fork 0

Rename Iterator::fold_first to reduce.

This commit is contained in:
Mara Bos 2020-12-07 21:23:29 +01:00
parent e708cbd91c
commit 5c056ed2f5
2 changed files with 5 additions and 5 deletions

View file

@ -358,7 +358,7 @@ impl GenericArgs<'_> {
.iter()
.filter(|arg| !arg.is_synthetic())
.map(|arg| arg.span())
.fold_first(|span1, span2| span1.to(span2))
.reduce(|span1, span2| span1.to(span2))
}
/// Returns span encompassing arguments and their surrounding `<>` or `()`