Fix a typo in comment

This commit is contained in:
AnthonyMikh
2020-03-10 02:07:14 +03:00
committed by GitHub
parent 13ea44fbad
commit 981db233dc
+1 -1
View File
@@ -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();
};