Rust is a proper name: rust → Rust
This commit is contained in:
parent
aa029ce4d8
commit
1a2bc1102d
12 changed files with 22 additions and 22 deletions
|
@ -259,7 +259,7 @@ impl<T, A: Allocator> RawVec<T, A> {
|
|||
} else {
|
||||
// We could use Layout::array here which ensures the absence of isize and usize overflows
|
||||
// and could hypothetically handle differences between stride and size, but this memory
|
||||
// has already been allocated so we know it can't overflow and currently rust does not
|
||||
// has already been allocated so we know it can't overflow and currently Rust does not
|
||||
// support such types. So we can do better by skipping some checks and avoid an unwrap.
|
||||
const { assert!(mem::size_of::<T>() % mem::align_of::<T>() == 0) };
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue