Rollup merge of #131105 - slanterns:literal_c_str, r=petrochenkov

update `Literal`'s intro

Just something missd when adding c_str to it.
This commit is contained in:
Jubilee 2024-10-04 19:19:24 -07:00 committed by GitHub
commit 5bad4e9cae
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
/// 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.