Skip to content

Commit 9558e44

Browse files
authored
Fix typos: Correct "compnents" to "components" and "independenent" to "independent" (#2158)
* Update names.rs * Update reloc.rs
1 parent 6a82bd7 commit 9558e44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/wasmparser/src/readers/component/names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::{BinaryReader, BinaryReaderError, NameMap, Result, Subsection, Subsec
22
use core::ops::Range;
33

44
/// Type used to iterate and parse the contents of the `component-name` custom
5-
/// section in compnents, similar to the `name` section of core modules.
5+
/// section in components, similar to the `name` section of core modules.
66
pub type ComponentNameSectionReader<'a> = Subsections<'a, ComponentName<'a>>;
77

88
/// Represents a name read from the names custom section.

crates/wasmparser/src/readers/core/reloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ back_to_enum! {
128128
MemoryAddrRelSleb = 11,
129129

130130
/// A function address (table index) relative to the __table_base wasm
131-
/// global. Used in position indepenent code (-fPIC) where absolute
131+
/// global. Used in position independent code (-fPIC) where absolute
132132
/// function addresses are not known at link time.
133133
TableIndexRelSleb = 12,
134134

0 commit comments

Comments
 (0)