From 3204c514ab02da5ad314507a2b7a8e3f7ce9dd9f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 30 Aug 2018 22:31:03 -0700 Subject: [PATCH] Fix typos --- crates/webidl/src/util.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/webidl/src/util.rs b/crates/webidl/src/util.rs index 9547594e..b91478f9 100644 --- a/crates/webidl/src/util.rs +++ b/crates/webidl/src/util.rs @@ -440,12 +440,12 @@ impl<'src> FirstPassRecord<'src> { // in-place, but all other flattened types will cause new // signatures to be created. let cur = actual_signatures.len(); - for (i, idl_type) in idl_type.flatten().enumerate() { - for j in start..cur { - if i == 0 { - actual_signatures[j].args.push(idl_type.clone()); + for (j, idl_type) in idl_type.flatten().into_iter().enumerate() { + for k in start..cur { + if j == 0 { + actual_signatures[k].args.push(idl_type.clone()); } else { - let mut sig = actual_signatures[j].clone(); + let mut sig = actual_signatures[k].clone(); assert_eq!(sig.args.len(), i + 1); sig.args.truncate(i); sig.args.push(idl_type.clone());