about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-10-04 19:19:24 -0700
committerGitHub <noreply@github.com>2024-10-04 19:19:24 -0700
commit5bad4e9cae7fe6ea0543d1a98ba59cfe5a17e513 (patch)
treef342139fc25dac7fc45679cb60b7e920e9edc162
parent68de7d11a98c87354de26097084b7b9479b710c7 (diff)
parent30ff4006e136123645b9fcca511b13652b8a5f98 (diff)
downloadrust-5bad4e9cae7fe6ea0543d1a98ba59cfe5a17e513.tar.gz
rust-5bad4e9cae7fe6ea0543d1a98ba59cfe5a17e513.zip
Rollup merge of #131105 - slanterns:literal_c_str, r=petrochenkov
update `Literal`'s intro

Just something missd when adding c_str to it.
-rw-r--r--library/proc_macro/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs
index 5522d556a59..72b597a8083 100644
--- a/library/proc_macro/src/lib.rs
+++ b/library/proc_macro/src/lib.rs
@@ -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.