diff --git a/crates/oxc_allocator/src/string.rs b/crates/oxc_allocator/src/string.rs index 9d2abd13d4ebd..f9aaa9ceb1168 100644 --- a/crates/oxc_allocator/src/string.rs +++ b/crates/oxc_allocator/src/string.rs @@ -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::()` bytes". // However, safety docs for `std::ptr` (https://doc.rust-lang.org/std/ptr/index.html#safety) // state that: