diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-12-18 21:38:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-18 21:38:10 -0500 |
| commit | 0391770c0710cd3d5fcc645c160af6c9cab8a99a (patch) | |
| tree | f6d17a6b931e09eb64419fca1da65bc73f4d777d /compiler/rustc_errors/src | |
| parent | 871c2d81a9fbea2b993efc10279a6f73ca9ac986 (diff) | |
| parent | 6734a04c0a6aff674011c9b4cb1c89cba2636c4d (diff) | |
| download | rust-0391770c0710cd3d5fcc645c160af6c9cab8a99a.tar.gz rust-0391770c0710cd3d5fcc645c160af6c9cab8a99a.zip | |
Rollup merge of #134473 - acceptacross:master, r=compiler-errors
chore: fix some typos
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)) |
