Merge pull request #39 from AnthonyMikh/fix_typo

Fix a typo in comment
This commit is contained in:
Ralf Jung
2020-03-10 08:27:34 +01:00
committed by GitHub
+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();
};