From cf8cf9a9481d6c6d97a83bd7a06eb9ccb7456ffd Mon Sep 17 00:00:00 2001 From: Craig Pastro Date: Tue, 23 Jun 2020 08:47:13 +0900 Subject: [PATCH] wiggle: fix a couple of typos in lib.rs docs --- crates/wiggle/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }