diff options
author | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-04-10 22:02:52 +0200 |
---|---|---|
committer | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-04-10 22:02:52 +0200 |
commit | 677357d32bd402ff1096803cb00b52124204af08 (patch) | |
tree | a0fba8dabec8265b98ad441f96d09c4603883a77 /compiler/rustc_parse_format | |
parent | a73288371e3fa0a610fbc11e7e8418017bdfde42 (diff) | |
download | rust-677357d32bd402ff1096803cb00b52124204af08.tar.gz |
Fix typos in compiler
Diffstat (limited to 'compiler/rustc_parse_format')
-rw-r--r-- | compiler/rustc_parse_format/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs index 1c5410c5658..7de84db211e 100644 --- a/compiler/rustc_parse_format/src/lib.rs +++ b/compiler/rustc_parse_format/src/lib.rs @@ -909,7 +909,7 @@ fn find_width_map_from_snippet( // Strip quotes. let snippet = &snippet[1..snippet.len() - 1]; - // Macros like `println` add a newline at the end. That technically doens't make them "literals" anymore, but it's fine + // Macros like `println` add a newline at the end. That technically doesn't make them "literals" anymore, but it's fine // since we will never need to point our spans there, so we lie about it here by ignoring it. // Since there might actually be newlines in the source code, we need to normalize away all trailing newlines. // If we only trimmed it off the input, `format!("\n")` would cause a mismatch as here we they actually match up. |