From 981db233dccc8e67e41b1d2938b6e3389ee63349 Mon Sep 17 00:00:00 2001 From: AnthonyMikh Date: Tue, 10 Mar 2020 02:07:14 +0300 Subject: [PATCH] Fix a typo in comment --- src/offset_of.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offset_of.rs b/src/offset_of.rs index ac13f2e..5c80d9d 100644 --- a/src/offset_of.rs +++ b/src/offset_of.rs @@ -29,7 +29,7 @@ macro_rules! _memoffset__let_base_ptr { // But we have to make sure that `uninit` lives long enough, // so it has to be in the same scope as `$name`. That's why // `let_base_ptr` declares a variable (several, actually) - // instad of returning one. + // instead of returning one. let uninit = $crate::mem::MaybeUninit::<$type>::uninit(); let $name = uninit.as_ptr(); };