chore: fix some typos
Signed-off-by: acceptacross <csqcqs@gmail.com>
This commit is contained in:
parent
3378a5e084
commit
6734a04c0a
6 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
_ => {
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue