Skip to content

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

docs: minor improvement for docs (#11952)

geogregod55a5c8bd805
diff --git a/cranelift/codegen/src/machinst/buffer.rs b/cranelift/codegen/src/machinst/buffer.rs
index 444ae2a25b..da77d12ae9 100644
--- a/cranelift/codegen/src/machinst/buffer.rs
+++ b/cranelift/codegen/src/machinst/buffer.rs
@@ -1608,7 +1608,7 @@ impl<I: VCodeInst> MachBuffer<I> {
// relocation or to the veneer inserted. Additionally
// `MachBuffer` needs the concept of a label which will never be
// resolved, so `emit_island` doesn't trip over not actually ever
- // knowning what some labels are. Currently the loop in
+ // knowing what some labels are. Currently the loop in
// `finish_emission_maybe_forcing_veneers` would otherwise infinitely
// loop.
//
diff --git a/crates/wasmtime/src/runtime/component/resources/host_dynamic.rs b/crates/wasmtime/src/runtime/component/resources/host_dynamic.rs
index 0bb6268dd8..8f49f0dec1 100644
--- a/crates/wasmtime/src/runtime/component/resources/host_dynamic.rs
+++ b/crates/wasmtime/src/runtime/component/resources/host_dynamic.rs
@@ -46,7 +46,7 @@ use wasmtime_environ::component::{CanonicalAbiInfo, InterfaceType};
/// to know how to destroy the associated state, if any, that
/// [`ResourceDynamic`] references. The difference with [`Resource`] is that is
/// has runtime type information instead of static type information, meaning
-/// that it's possible to mix these up at compile by by accident.
+/// that it's possible to mix these up at compile by accident.
///
/// However a [`ResourceDynamic`] can be constructed dynamically at runtime with
/// a runtime-defined type. For example an embedding that provides generic
diff --git a/crates/wizer/src/info.rs b/crates/wizer/src/info.rs
index 8859ae91eb..458556d2a6 100644
--- a/crates/wizer/src/info.rs
+++ b/crates/wizer/src/info.rs
@@ -4,7 +4,7 @@ use std::ops::Range;
/// Info that we keep track of on a per module-within-a-module-linking-bundle
/// basis.
///
-/// These are created during during our `parse` pass and then used throughout
+/// These are created during our `parse` pass and then used throughout
/// our later passes.
#[derive(Default)]
pub struct ModuleContext<'a> {
diff --git a/examples/min-platform/embedding/src/lib.rs b/examples/min-platform/embedding/src/lib.rs
index 356f6cd170..d36c2f4624 100644
--- a/examples/min-platform/embedding/src/lib.rs
+++ b/examples/min-platform/embedding/src/lib.rs
@@ -85,7 +85,7 @@ fn config() -> Config {
// isn't possible in no_std. For x86_64 we can use the cpuid instruction
// bound through an external crate.
//
- // Note that CPU support for these features has existend since 2013
+ // Note that CPU support for these features has existed since 2013
// (Haswell) on Intel chips and 2012 (Piledriver) on AMD chips.
unsafe {
config.detect_host_feature(move |feature| {
diff --git a/examples/min-platform/src/main.rs b/examples/min-platform/src/main.rs
index 2801672dc3..900d44615d 100644
--- a/examples/min-platform/src/main.rs
+++ b/examples/min-platform/src/main.rs
@@ -82,7 +82,7 @@ fn main() -> Result<()> {
//
// Note that the embedding will need to check that these features are
// actually available at runtime. CPU support for these features has
- // existend since 2013 (Haswell) on Intel chips and 2012 (Piledriver) on
+ // existed since 2013 (Haswell) on Intel chips and 2012 (Piledriver) on
// AMD chips.
if cfg!(target_arch = "x86_64") {
unsafe {