Skip to content

Commit

Permalink
typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankReh committed Apr 27, 2024
1 parent 6232904 commit fb8424b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/runtime/src/component/resources.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Implementation of the canonical-ABI related intrinsics for resources in the
//! component model.
//!
//! This module contains all the relevant gory details of the details of the
//! This module contains all the relevant gory details of the
//! component model related to lifting and lowering resources. For example
//! intrinsics like `resource.new` will bottom out in calling this file, and
//! this is where resource tables are actually defined and modified.
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/src/cow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl MemoryImageSlot {
/// Create a new MemoryImageSlot. Assumes that there is an anonymous
/// mmap backing in the given range to start.
///
/// The `accessible` parameter descibes how much of linear memory is
/// The `accessible` parameter describes how much of linear memory is
/// already mapped as R/W with all zero-bytes. The `static_size` value is
/// the maximum size of this image which `accessible` cannot grow beyond,
/// and all memory from `accessible` from `static_size` should be mapped as
Expand Down
6 changes: 3 additions & 3 deletions crates/runtime/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ pub struct ExportFunction {
pub func_ref: NonNull<VMFuncRef>,
}

// It's part of the contract of using `ExportFunction` that synchronization
// properties are upheld, so declare that despite the raw pointers inside this
// is send/sync.
// As part of the contract for using `ExportFunction`, synchronization
// properties must be upheld. Therefore, despite containing raw pointers,
// it is declared as Send/Sync.
unsafe impl Send for ExportFunction {}
unsafe impl Sync for ExportFunction {}

Expand Down
2 changes: 1 addition & 1 deletion crates/wasi-http/wit/deps/io/poll.wit
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ interface poll {
/// This function does not return a `result`; polling in itself does not
/// do any I/O so it doesn't fail. If any of the I/O sources identified by
/// the pollables has an error, it is indicated by marking the source as
/// being reaedy for I/O.
/// being ready for I/O.
poll: func(in: list<borrow<pollable>>) -> list<u32>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3357,7 +3357,7 @@ pub mod wasi {
/// This function does not return a `result`; polling in itself does not
/// do any I/O so it doesn't fail. If any of the I/O sources identified by
/// the pollables has an error, it is indicated by marking the source as
/// being reaedy for I/O.
/// being ready for I/O.
pub fn poll(in_: &[&Pollable],) -> wit_bindgen::rt::vec::Vec::<u32>{

#[allow(unused_imports)]
Expand Down Expand Up @@ -9168,4 +9168,4 @@ pub mod wasi {
#[doc(hidden)]
#[cfg(target_arch = "wasm32")]
pub fn __link_section() {}


4 changes: 2 additions & 2 deletions crates/wasmtime/src/runtime/component/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,15 +425,15 @@ impl ResultType {
ResultType(Handle::new(index, ty))
}

/// Retrieve the `ok` type parameter for this `option`.
/// Retrieve the `ok` type parameter for this `result`.
pub fn ok(&self) -> Option<Type> {
Some(Type::from(
self.0.types[self.0.index].ok.as_ref()?,
&self.0.instance(),
))
}

/// Retrieve the `err` type parameter for this `option`.
/// Retrieve the `err` type parameter for this `result`.
pub fn err(&self) -> Option<Type> {
Some(Type::from(
self.0.types[self.0.index].err.as_ref()?,
Expand Down

0 comments on commit fb8424b

Please sign in to comment.