Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/oxc_allocator/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl<'alloc> String<'alloc> {
//
// If `str` is empty, `len` is 0.
// If `total_len == 0`, `dst` is a dangling pointer, *not* valid for read or write of a `u8`.
// `copy_nonoverlapping` requires that `src` and `dst must both
// `copy_nonoverlapping` requires that `src` and `dst` must both
// "be valid for reads of `count * size_of::<T>()` bytes".
// However, safety docs for `std::ptr` (https://doc.rust-lang.org/std/ptr/index.html#safety)
// state that:
Expand Down
Loading