Skip to content

Commit

Permalink
Follow-up of rust-lang/rust#75152
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Aug 18, 2020
1 parent 685ca70 commit 81797cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vec-final.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<T> RawVec<T> {
mem::align_of::<T>(),
))
}
let ptr = ptr.unwrap().ptr;
let ptr = ptr.unwrap();

self.ptr = Unique::new_unchecked(ptr.as_ptr() as *mut _);
self.cap = new_cap;
Expand Down

0 comments on commit 81797cf

Please sign in to comment.