4_pin.md: fix typo

This commit is contained in:
eupn
2020-04-12 01:35:18 +08:00
committed by GitHub
parent f4b2029788
commit 79a04ce025

View File

@@ -326,7 +326,7 @@ Let's see what happens if we run our example now:
pub fn main() {
// test1 is safe to move before we initialize it
let mut test1 = Test::new("test1");
// Notice how we shadow `test1` to prevent it from beeing accessed again
// Notice how we shadow `test1` to prevent it from being accessed again
let mut test1 = unsafe { Pin::new_unchecked(&mut test1) };
Test::init(test1.as_mut());