Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Oct 13, 2019
1 parent 1733440 commit 3ebab87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion foreign-types-shared/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ pub trait ForeignType: Sized {
/// Returns a raw pointer to the wrapped value.
fn as_ptr(&self) -> *mut Self::CType;

/// Consumes the wrapper and returnes the raw pointer.
/// Consumes the wrapper and returns the raw pointer.
#[inline]
fn into_ptr(self) -> *mut Self::CType {
let ptr = self.as_ptr();
mem::forget(self);
Expand Down

0 comments on commit 3ebab87

Please sign in to comment.