Skip to content

Commit 07f280a

Browse files
committed
Wrap PR 1213 to 80 columns
1 parent 75ed447 commit 07f280a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/read.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -977,10 +977,11 @@ fn push_wtf8_codepoint(n: u32, scratch: &mut Vec<u8>) {
977977

978978
scratch.reserve(4);
979979

980-
// SAFETY: After the `reserve` call, `scratch` has at least 4 bytes of allocated but
981-
// unintialized memory after its last initialized byte, which is where `ptr` points. All
982-
// reachable match arms write `encoded_len` bytes to that region and update the length
983-
// accordingly, and `encoded_len` is always <= 4.
980+
// SAFETY: After the `reserve` call, `scratch` has at least 4 bytes of
981+
// allocated but unintialized memory after its last initialized byte, which
982+
// is where `ptr` points. All reachable match arms write `encoded_len` bytes
983+
// to that region and update the length accordingly, and `encoded_len` is
984+
// always <= 4.
984985
unsafe {
985986
let ptr = scratch.as_mut_ptr().add(scratch.len());
986987

0 commit comments

Comments
 (0)