Skip to content

Commit

Permalink
Merge pull request #32 from SimonSapin/nonzero-checked
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra authored Aug 2, 2017
2 parents eb0cd14 + f8fd671 commit 680e284
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 @@ -49,7 +49,7 @@ impl<T> RawVec<T> {
Err(err) => Heap.oom(err),
};

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

0 comments on commit 680e284

Please sign in to comment.