From af3d80de56bc9bb06def76badbd0ef1abd43ca7c Mon Sep 17 00:00:00 2001 From: jimmycathy Date: Sun, 16 Mar 2025 13:25:00 +0800 Subject: [PATCH] chore: fix typo Signed-off-by: jimmycathy --- src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read.rs b/src/read.rs index 0748af4..f90d9f7 100644 --- a/src/read.rs +++ b/src/read.rs @@ -984,7 +984,7 @@ fn push_wtf8_codepoint(n: u32, scratch: &mut Vec) { scratch.reserve(4); // SAFETY: After the `reserve` call, `scratch` has at least 4 bytes of - // allocated but unintialized memory after its last initialized byte, which + // allocated but uninitialized memory after its last initialized byte, which // is where `ptr` points. All reachable match arms write `encoded_len` bytes // to that region and update the length accordingly, and `encoded_len` is // always <= 4.