Skip to content

Commit

Permalink
Rollup merge of #131105 - slanterns:literal_c_str, r=petrochenkov
Browse files Browse the repository at this point in the history
update `Literal`'s intro

Just something missd when adding c_str to it.
  • Loading branch information
workingjubilee authored Oct 5, 2024
2 parents 68de7d1 + 30ff400 commit 5bad4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ impl fmt::Debug for Ident {
}
}

/// 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.
Expand Down

0 comments on commit 5bad4e9

Please sign in to comment.