Browse Source

Update crates/wiggle/src/lib.rs

pull/1909/head
Pat Hickey 4 years ago
committed by GitHub
parent
commit
c6e599219a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      crates/wiggle/src/lib.rs

2
crates/wiggle/src/lib.rs

@ -540,7 +540,7 @@ impl<'a> GuestPtr<'a, str> {
}
impl<'a> GuestPtr<'a, [u8]> {
/// Returns a raw pointer to the string represented by a `[u8]` without
/// Returns a pointer to the string represented by a `[u8]` without
/// validating whether each u8 is a utf-8 codepoint.
pub fn as_str_ptr(&self) -> GuestPtr<'a, str> {
GuestPtr::new(self.mem, self.pointer)

Loading…
Cancel
Save