update Literal's intro

This commit is contained in:
Slanterns 2024-10-02 01:27:11 +08:00 committed by GitHub
parent 8dd5cd0bc1
commit 30ff4006e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1166,7 +1166,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
} }
} }
/// A literal string (`"hello"`), byte string (`b"hello"`), /// A literal string (`"hello"`), byte string (`b"hello"`), C string (`c"hello"`),
/// character (`'a'`), byte character (`b'a'`), an integer or floating point number /// character (`'a'`), byte character (`b'a'`), an integer or floating point number
/// with or without a suffix (`1`, `1u8`, `2.3`, `2.3f32`). /// with or without a suffix (`1`, `1u8`, `2.3`, `2.3f32`).
/// Boolean literals like `true` and `false` do not belong here, they are `Ident`s. /// Boolean literals like `true` and `false` do not belong here, they are `Ident`s.