Skip to content

Commit c169958

Browse files
committed
Add and correct comments.
1 parent d518908 commit c169958

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates
    • wasi-preview1-component-adapter/src
    • wasmtime/src/runtime/component

crates/wasi-preview1-component-adapter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ impl ImportAlloc {
438438
#[derive(Clone)]
439439
struct BumpAlloc {
440440
base: *mut u8,
441-
len: usize,
441+
len: usize, // remaining size available for allocation
442442
}
443443

444444
impl BumpAlloc {

crates/wasmtime/src/runtime/component/linker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl<T: 'static> Linker<T> {
168168
imported_resources: Default::default(),
169169
};
170170

171-
// Walk over the component's list of import names and use that to lookup
171+
// Walk over the component's list of import names and use that to look up
172172
// the definition within this linker that it corresponds to. When found
173173
// perform a typecheck against the component's expected type.
174174
let env_component = component.env_component();

0 commit comments

Comments
 (0)