1
Fork 0

chore: fix some typos

Signed-off-by: acceptacross <csqcqs@gmail.com>
This commit is contained in:
acceptacross 2024-12-18 23:23:44 +08:00
parent 3378a5e084
commit 6734a04c0a
6 changed files with 6 additions and 6 deletions

View file

@ -2523,7 +2523,7 @@ impl HumanEmitter {
buffer.puts(*row_num, max_line_num_len + 1, "+ ", Style::Addition);
}
[] => {
// FIXME: needed? Doesn't get excercised in any test.
// FIXME: needed? Doesn't get exercised in any test.
self.draw_col_separator_no_space(buffer, *row_num, max_line_num_len + 1);
}
_ => {

View file

@ -346,7 +346,7 @@ fn parse_with_end_pat<'a>(
None
}
/// Resturn `(match, residual)` to end of line. The EOL is returned with the
/// Return `(match, residual)` to end of line. The EOL is returned with the
/// residual.
fn parse_to_newline(buf: &[u8]) -> (&[u8], &[u8]) {
buf.iter().position(|ch| *ch == b'\n').map_or((buf, &[]), |pos| buf.split_at(pos))