mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Switch zip to zip_equal where possible (#6389)
There are two uses I'm not converting here, that seem to want the "shortest" behavior. For everything else, I'm going to `zip_equal` since it's more restrictive. I wish `zip` were named `zip_shortest`.
This commit is contained in:
@@ -654,7 +654,7 @@ class Stringifier {
|
||||
step_stack_->PushString("}");
|
||||
llvm::ListSeparator sep;
|
||||
for (auto [field, value_inst_id] :
|
||||
llvm::reverse(llvm::zip(fields, field_values))) {
|
||||
llvm::reverse(llvm::zip_equal(fields, field_values))) {
|
||||
step_stack_->Push(".", field.name_id, " = ", value_inst_id, &sep);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user