diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-03-06 14:15:02 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-05-02 10:32:07 +0000 |
| commit | 78e3455d375feb5d100a43110f78b405a8ff05f1 (patch) | |
| tree | 3db0b6534773064378f096a08b9791c248c3efb5 /compiler | |
| parent | 4c01d494b8233c930868be33cf4880b4267ede82 (diff) | |
| download | rust-78e3455d375feb5d100a43110f78b405a8ff05f1.tar.gz rust-78e3455d375feb5d100a43110f78b405a8ff05f1.zip | |
address comments
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_lexer/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index fb90d309fcd..8555ba3e7ce 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -1814,7 +1814,7 @@ pub enum LitKind { /// A byte string (`b"foo"`). Not stored as a symbol because it might be /// non-utf8, and symbols only allow utf8 strings. ByteStr(Lrc<[u8]>, StrStyle), - /// A C String (`c"foo"`). Guaranteed only have `\0` in the end. + /// A C String (`c"foo"`). Guaranteed to only have `\0` at the end. CStr(Lrc<[u8]>, StrStyle), /// A byte char (`b'f'`). Byte(u8), diff --git a/compiler/rustc_lexer/src/lib.rs b/compiler/rustc_lexer/src/lib.rs index ce8c9ebe7ce..c07dc19a0ac 100644 --- a/compiler/rustc_lexer/src/lib.rs +++ b/compiler/rustc_lexer/src/lib.rs @@ -194,7 +194,7 @@ pub enum LiteralKind { /// "br"abc"", "br#"abc"#", "br####"ab"###"c"####", "br#"a". `None` /// indicates an invalid literal. RawByteStr { n_hashes: Option<u8> }, - /// `cr"abc"`, "cr#"abc"#", `cr#"a`. `None` is invalid. + /// `cr"abc"`, "cr#"abc"#", `cr#"a`. `None` indicates an invalid literal. RawCStr { n_hashes: Option<u8> }, } |
