Skip to content

Commit c453d95

Browse files
authored
chore: fix some typos (#10556)
Signed-off-by: timesince <[email protected]>
1 parent b30157e commit c453d95

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/cranelift/src/translate/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl TableSize {
2424
/// Get a CLIF value representing the current bounds of this table.
2525
pub fn bound(&self, isa: &dyn TargetIsa, mut pos: FuncCursor, index_ty: ir::Type) -> ir::Value {
2626
match *self {
27-
// Instead of `i64::try_from(bound)`, here we just want to direcly interpret `bound` as an i64.
27+
// Instead of `i64::try_from(bound)`, here we just want to directly interpret `bound` as an i64.
2828
TableSize::Static { bound } => pos.ins().iconst(index_ty, Imm64::new(bound as i64)),
2929
TableSize::Dynamic { bound_gv } => {
3030
let ty = pos.func.global_values[bound_gv].global_type(isa);

crates/wasmtime/src/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,8 +1546,8 @@ impl Config {
15461546
///
15471547
/// Memory in the `initial` range is accessible to the instance and can be
15481548
/// read/written by wasm code. Memory in the `guard` regions is never
1549-
/// accesible to wasm code and memory in `capacity` is initially
1550-
/// inaccessible but may become accesible through `memory.grow` instructions
1549+
/// accessible to wasm code and memory in `capacity` is initially
1550+
/// inaccessible but may become accessible through `memory.grow` instructions
15511551
/// for example.
15521552
///
15531553
/// This means that this setting is the size of the initial chunk of virtual
@@ -1559,7 +1559,7 @@ impl Config {
15591559
/// during the compilation process of a WebAssembly module. For example if a
15601560
/// 32-bit WebAssembly linear memory has a `memory_reservation` size of 4GiB
15611561
/// then bounds checks can be elided because `capacity` will be guaranteed
1562-
/// to be unmapped for all addressible bytes that wasm can access (modulo a
1562+
/// to be unmapped for all addressable bytes that wasm can access (modulo a
15631563
/// few details).
15641564
///
15651565
/// If `memory_reservation` was something smaller like 256KiB then that
@@ -1571,7 +1571,7 @@ impl Config {
15711571
/// modules by default. Some situations which require explicit bounds checks
15721572
/// though are:
15731573
///
1574-
/// * When `memory_reservation` is smaller than the addressible size of the
1574+
/// * When `memory_reservation` is smaller than the addressable size of the
15751575
/// linear memory. For example if 64-bit linear memories always need
15761576
/// bounds checks as they can address the entire virtual address spacce.
15771577
/// For 32-bit linear memories a `memory_reservation` minimum size of 4GiB

crates/wasmtime/src/runtime/type_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ impl TypeRegistryInner {
696696
log::trace!("registering rec group of length {}", types.len());
697697
debug_assert_eq!(iter_entity_range(range.clone()).len(), types.len());
698698

699-
// We need two different canonicalizations of this rec group: one for
699+
// We need two different canonicalization of this rec group: one for
700700
// hash-consing and another for runtime usage within this
701701
// engine. However, we only need the latter if this is a new rec group
702702
// that hasn't been registered before. Therefore, we only eagerly create

0 commit comments

Comments
 (0)