Skip to content

Commit 78e3455

Browse files
committed
address comments
1 parent 4c01d49 commit 78e3455

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ pub enum LitKind {
18141814
/// A byte string (`b"foo"`). Not stored as a symbol because it might be
18151815
/// non-utf8, and symbols only allow utf8 strings.
18161816
ByteStr(Lrc<[u8]>, StrStyle),
1817-
/// A C String (`c"foo"`). Guaranteed only have `\0` in the end.
1817+
/// A C String (`c"foo"`). Guaranteed to only have `\0` at the end.
18181818
CStr(Lrc<[u8]>, StrStyle),
18191819
/// A byte char (`b'f'`).
18201820
Byte(u8),

compiler/rustc_lexer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ pub enum LiteralKind {
194194
/// "br"abc"", "br#"abc"#", "br####"ab"###"c"####", "br#"a". `None`
195195
/// indicates an invalid literal.
196196
RawByteStr { n_hashes: Option<u8> },
197-
/// `cr"abc"`, "cr#"abc"#", `cr#"a`. `None` is invalid.
197+
/// `cr"abc"`, "cr#"abc"#", `cr#"a`. `None` indicates an invalid literal.
198198
RawCStr { n_hashes: Option<u8> },
199199
}
200200

0 commit comments

Comments
 (0)