Fix typo in panic!

This commit is contained in:
Nick Lewycky
2019-06-18 15:15:49 -07:00
parent e3af924391
commit 3e0a2a05e2

View File

@ -139,7 +139,7 @@ impl LocalBacking {
if let Value::I32(x) = imports.globals[import_global_index].get() { if let Value::I32(x) = imports.globals[import_global_index].get() {
x as u32 x as u32
} else { } else {
panic!("unsupported global type for initialzer") panic!("unsupported global type for initializer")
} }
} }
} as usize; } as usize;
@ -210,7 +210,7 @@ impl LocalBacking {
if let Value::I32(x) = imports.globals[import_global_index].get() { if let Value::I32(x) = imports.globals[import_global_index].get() {
x as u32 x as u32
} else { } else {
panic!("unsupported global type for initialzer") panic!("unsupported global type for initializer")
} }
} }
} as usize; } as usize;