diff options
| author | acceptacross <csqcqs@gmail.com> | 2024-12-18 23:23:44 +0800 |
|---|---|---|
| committer | acceptacross <csqcqs@gmail.com> | 2024-12-18 23:23:44 +0800 |
| commit | 6734a04c0a6aff674011c9b4cb1c89cba2636c4d (patch) | |
| tree | 643fbc6e4fea11ab5702c3303fbf863f946a25d6 /compiler/rustc_errors/src | |
| parent | 3378a5e084fa51c2e7f5c3f53b87e8ad89f1c517 (diff) | |
| download | rust-6734a04c0a6aff674011c9b4cb1c89cba2636c4d.tar.gz rust-6734a04c0a6aff674011c9b4cb1c89cba2636c4d.zip | |
chore: fix some typos
Signed-off-by: acceptacross <csqcqs@gmail.com>
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_errors/src/markdown/parse.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index ac2f91cdeb3..f63188402fe 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -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); } _ => { diff --git a/compiler/rustc_errors/src/markdown/parse.rs b/compiler/rustc_errors/src/markdown/parse.rs index 8dd146c1c33..7a991a2ace7 100644 --- a/compiler/rustc_errors/src/markdown/parse.rs +++ b/compiler/rustc_errors/src/markdown/parse.rs @@ -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)) |
