@@ -332,11 +332,11 @@ unsafe impl<T: ?Sized + GuestMemory> GuestMemory for Arc<T> {
332332/// * `GuestPtr<'_, str>` - a pointer to a guest string. Has the methods
333333/// [`GuestPtr::as_str_mut`], which gives a dynamically borrow-checked
334334/// `GuestStrMut<'_>`, which `DerefMut`s to a `&mut str`, and
335- /// [`GuestPtr::as_str`], which is the sharedable version of same.
335+ /// [`GuestPtr::as_str`], which is the shareable version of same.
336336/// * `GuestPtr<'_, [T]>` - a pointer to a guest array. Has methods
337337/// [`GuestPtr::as_slice_mut`], which gives a dynamically borrow-checked
338338/// `GuestSliceMut<'_, T>`, which `DerefMut`s to a `&mut [T]` and
339- /// [`GuestPtr::as_slice`], which is the sharedable version of same.
339+ /// [`GuestPtr::as_slice`], which is the shareable version of same.
340340///
341341/// Unsized types such as this may have extra methods and won't have methods
342342/// like [`GuestPtr::read`] or [`GuestPtr::write`].
@@ -512,9 +512,9 @@ impl<'a, T> GuestPtr<'a, [T]> {
512512 /// Attempts to create a [`GuestSlice<'_, T>`] from this pointer, performing
513513 /// bounds checks and type validation. The `GuestSlice` is a smart pointer
514514 /// that can be used as a `&[T]` via the `Deref` trait.
515- /// The region of memory backing the slice will be marked as sharedably
515+ /// The region of memory backing the slice will be marked as shareably
516516 /// borrowed by the [`GuestMemory`] until the `GuestSlice` is dropped.
517- /// Multiple sharedable borrows of the same memory are permitted, but only
517+ /// Multiple shareable borrows of the same memory are permitted, but only
518518 /// one mutable borrow.
519519 ///
520520 /// This function will return a `GuestSlice` into host memory if all checks
@@ -691,7 +691,7 @@ impl<'a> GuestPtr<'a, str> {
691691 /// Attempts to create a [`GuestStr<'_>`] from this pointer, performing
692692 /// bounds checks and utf-8 checks. The resulting `GuestStr` can be used
693693 /// as a `&str` via the `Deref` trait. The region of memory backing the
694- /// `str` will be marked as sharedably borrowed by the [`GuestMemory`]
694+ /// `str` will be marked as shareably borrowed by the [`GuestMemory`]
695695 /// until the `GuestStr` is dropped.
696696 ///
697697 /// This function will return `GuestStr` into host memory if all checks
@@ -777,7 +777,7 @@ impl<T: ?Sized + Pointee> fmt::Debug for GuestPtr<'_, T> {
777777 }
778778}
779779
780- /// A smart pointer to an sharedable slice in guest memory.
780+ /// A smart pointer to an shareable slice in guest memory.
781781/// Usable as a `&'a [T]` via [`std::ops::Deref`].
782782pub struct GuestSlice < ' a , T > {
783783 ptr : & ' a [ T ] ,
@@ -826,7 +826,7 @@ impl<'a, T> Drop for GuestSliceMut<'a, T> {
826826 }
827827}
828828
829- /// A smart pointer to an sharedable `str` in guest memory.
829+ /// A smart pointer to an shareable `str` in guest memory.
830830/// Usable as a `&'a str` via [`std::ops::Deref`].
831831pub struct GuestStr < ' a > {
832832 ptr : & ' a str ,
0 commit comments