Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

docs: fix typos (#11746)

Block Piratedf21758b2503
diff --git a/crates/wasi-http/src/p3/body.rs b/crates/wasi-http/src/p3/body.rs
index ff4e60b651..a63c86ba09 100644
--- a/crates/wasi-http/src/p3/body.rs
+++ b/crates/wasi-http/src/p3/body.rs
@@ -341,7 +341,7 @@ impl http_body::Body for GuestBody {
match res {
Ok(buf) => {
if let Some(n) = self.content_length.as_mut() {
- // Substract frame length from `content_length`,
+ // Subtract frame length from `content_length`,
// [LimitedGuestBodyConsumer] already performs the validation, so
// just keep count as optimization for
// `is_end_stream` and `size_hint`
diff --git a/crates/wasi/src/sockets/tcp.rs b/crates/wasi/src/sockets/tcp.rs
index 5008f7e645..d7d59029a1 100644
--- a/crates/wasi/src/sockets/tcp.rs
+++ b/crates/wasi/src/sockets/tcp.rs
@@ -332,7 +332,7 @@ impl TcpSocket {
}
}
- /// For WASIp2 this retreives the result from the future passed to
+ /// For WASIp2 this retrieves the result from the future passed to
/// `set_pending_connect`.
///
/// Return states here are:
diff --git a/crates/wasi/src/view.rs b/crates/wasi/src/view.rs
index c2e84af1f3..2b96ec49e0 100644
--- a/crates/wasi/src/view.rs
+++ b/crates/wasi/src/view.rs
@@ -39,7 +39,7 @@ pub trait WasiView: Send {
fn ctx(&mut self) -> WasiCtxView<'_>;
}
-/// Structure returned from [`WasiView::ctx`] which provides accesss to WASI
+/// Structure returned from [`WasiView::ctx`] which provides access to WASI
/// state for host functions to be implemented with.
pub struct WasiCtxView<'a> {
/// The [`WasiCtx`], or configuration, of the guest.