Skip to content

Commit 641b571

Browse files
authored
Fix typos (#2246)
* Update printing.rs * Update operator.rs
1 parent bfd312f commit 641b571

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/wasmprinter/src/operator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl<'printer, 'state, 'a, 'b> PrintOperator<'printer, 'state, 'a, 'b> {
239239
Some(name) if !name_conflict => name.write(self.printer)?,
240240

241241
// If there's no name conflict, and we're synthesizing
242-
// names, and this isn't targetting the function itself then
242+
// names, and this isn't targeting the function itself then
243243
// print a synthesized names.
244244
//
245245
// Note that synthesized label names don't handle the

crates/wit-component/src/printing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ pub trait Output {
12341234
assert!(!src.contains('\n'));
12351235
let idented = self.indent_if_needed();
12361236
if idented && src.starts_with(' ') {
1237-
panic!("cannot add a space at the begining of a line");
1237+
panic!("cannot add a space at the beginning of a line");
12381238
}
12391239
self.push_str(src);
12401240
}

0 commit comments

Comments
 (0)