Rename Iterator::fold_first to reduce.
This commit is contained in:
parent
e708cbd91c
commit
5c056ed2f5
2 changed files with 5 additions and 5 deletions
|
@ -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 `()`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue