chore: Fix typos in 'compiler' (batch 2)
This commit is contained in:
parent
78d5c04d9c
commit
00de006f22
34 changed files with 54 additions and 54 deletions
|
@ -159,7 +159,7 @@ impl FileEncoder {
|
|||
// We produce a post-mono error if N > BUF_SIZE.
|
||||
let buf = unsafe { self.buffer_empty().first_chunk_mut::<N>().unwrap_unchecked() };
|
||||
let written = visitor(buf);
|
||||
// We have to ensure that an errant visitor cannot cause self.buffered to exeed BUF_SIZE.
|
||||
// We have to ensure that an errant visitor cannot cause self.buffered to exceed BUF_SIZE.
|
||||
if written > N {
|
||||
Self::panic_invalid_write::<N>(written);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue