mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-28 20:43:23 +03:00
Fix typos
This commit is contained in:
parent
c9c776b0b4
commit
3204c514ab
@ -440,12 +440,12 @@ impl<'src> FirstPassRecord<'src> {
|
|||||||
// in-place, but all other flattened types will cause new
|
// in-place, but all other flattened types will cause new
|
||||||
// signatures to be created.
|
// signatures to be created.
|
||||||
let cur = actual_signatures.len();
|
let cur = actual_signatures.len();
|
||||||
for (i, idl_type) in idl_type.flatten().enumerate() {
|
for (j, idl_type) in idl_type.flatten().into_iter().enumerate() {
|
||||||
for j in start..cur {
|
for k in start..cur {
|
||||||
if i == 0 {
|
if j == 0 {
|
||||||
actual_signatures[j].args.push(idl_type.clone());
|
actual_signatures[k].args.push(idl_type.clone());
|
||||||
} else {
|
} else {
|
||||||
let mut sig = actual_signatures[j].clone();
|
let mut sig = actual_signatures[k].clone();
|
||||||
assert_eq!(sig.args.len(), i + 1);
|
assert_eq!(sig.args.len(), i + 1);
|
||||||
sig.args.truncate(i);
|
sig.args.truncate(i);
|
||||||
sig.args.push(idl_type.clone());
|
sig.args.push(idl_type.clone());
|
||||||
|
Loading…
Reference in New Issue
Block a user