From 3ebab87f263eb60eb6cdd6088da907527df5111f Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 13 Oct 2019 07:17:58 -0700 Subject: [PATCH] Fix typos --- foreign-types-shared/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/foreign-types-shared/src/lib.rs b/foreign-types-shared/src/lib.rs index 6e44867..9e6e56d 100644 --- a/foreign-types-shared/src/lib.rs +++ b/foreign-types-shared/src/lib.rs @@ -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);