From 63d4aa6ac5cc552712071349059194e6e07f960b Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:32:36 +0000 Subject: [PATCH] docs(allocator): fix quotes in comment (#10353) --- crates/oxc_allocator/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: