diff --git a/crates/wiggle/src/lib.rs b/crates/wiggle/src/lib.rs index 0c82784c45..f4d95188d1 100644 --- a/crates/wiggle/src/lib.rs +++ b/crates/wiggle/src/lib.rs @@ -259,7 +259,7 @@ impl<'a, T: ?Sized + Pointee> GuestPtr<'a, T> { /// Creates a new `GuestPtr` from the given `mem` and `pointer` values. /// /// Note that for sized types like `u32`, `GuestPtr`, etc, the `pointer` - /// vlue is a `u32` offset into guest memory. For slices and strings, + /// value is a `u32` offset into guest memory. For slices and strings, /// `pointer` is a `(u32, u32)` offset/length pair. pub fn new(mem: &'a (dyn GuestMemory + 'a), pointer: T::Pointer) -> GuestPtr<'a, T> { GuestPtr { @@ -488,7 +488,7 @@ impl<'a> GuestPtr<'a, str> { self.pointer.0 } - /// Returns the length, in bytes, of th estring. + /// Returns the length, in bytes, of the string. pub fn len(&self) -> u32 { self.pointer.1 }