From 81797cf059c79a592d3d471b60b1b51105e55694 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 19 Aug 2020 01:58:59 +0900 Subject: [PATCH] Follow-up of rust-lang/rust#75152 --- src/vec-final.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vec-final.md b/src/vec-final.md index 629295e..8c86641 100644 --- a/src/vec-final.md +++ b/src/vec-final.md @@ -58,7 +58,7 @@ impl RawVec { mem::align_of::(), )) } - let ptr = ptr.unwrap().ptr; + let ptr = ptr.unwrap(); self.ptr = Unique::new_unchecked(ptr.as_ptr() as *mut _); self.cap = new_cap;