Skip to content

Commit

Permalink
Rollup merge of rust-lang#131105 - slanterns:literal_c_str, r=petroch…
Browse files Browse the repository at this point in the history
…enkov

update `Literal`'s intro

Just something missd when adding c_str to it.
  • Loading branch information
workingjubilee authored Oct 5, 2024
2 parents 7001dd5 + f8db877 commit 65049d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 65049d1

Please sign in to comment.