Skip to content

Commit df21758

Browse files
authored
docs: fix typos (#11746)
1 parent 941fe88 commit df21758

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/wasi-http/src/p3/body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl http_body::Body for GuestBody {
341341
match res {
342342
Ok(buf) => {
343343
if let Some(n) = self.content_length.as_mut() {
344-
// Substract frame length from `content_length`,
344+
// Subtract frame length from `content_length`,
345345
// [LimitedGuestBodyConsumer] already performs the validation, so
346346
// just keep count as optimization for
347347
// `is_end_stream` and `size_hint`

crates/wasi/src/sockets/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ impl TcpSocket {
332332
}
333333
}
334334

335-
/// For WASIp2 this retreives the result from the future passed to
335+
/// For WASIp2 this retrieves the result from the future passed to
336336
/// `set_pending_connect`.
337337
///
338338
/// Return states here are:

crates/wasi/src/view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub trait WasiView: Send {
3939
fn ctx(&mut self) -> WasiCtxView<'_>;
4040
}
4141

42-
/// Structure returned from [`WasiView::ctx`] which provides accesss to WASI
42+
/// Structure returned from [`WasiView::ctx`] which provides access to WASI
4343
/// state for host functions to be implemented with.
4444
pub struct WasiCtxView<'a> {
4545
/// The [`WasiCtx`], or configuration, of the guest.

0 commit comments

Comments
 (0)