mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
chore: fix typo
Signed-off-by: jimmycathy <clonecode@outlook.com>
This commit is contained in:
parent
762783414e
commit
af3d80de56
@ -984,7 +984,7 @@ fn push_wtf8_codepoint(n: u32, scratch: &mut Vec<u8>) {
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user