Skip to content

Commit 55e3d22

Browse files
Improve new proc-macro methods name
1 parent 36c0fb5 commit 55e3d22

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

library/proc_macro/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,9 +1445,9 @@ impl Literal {
14451445
})
14461446
}
14471447

1448-
/// Returns the unescaped char value if the current literal is a char.
1448+
/// Returns the unescaped character value if the current literal is a byte character literal.
14491449
#[unstable(feature = "proc_macro_value", issue = "136652")]
1450-
pub fn byte_value(&self) -> Result<u8, ConversionErrorKind> {
1450+
pub fn byte_character_value(&self) -> Result<u8, ConversionErrorKind> {
14511451
self.0.symbol.with(|symbol| match self.0.kind {
14521452
bridge::LitKind::Char => {
14531453
unescape_byte(symbol).map_err(ConversionErrorKind::FailedToUnescape)
@@ -1456,9 +1456,9 @@ impl Literal {
14561456
})
14571457
}
14581458

1459-
/// Returns the unescaped char value if the current literal is a char.
1459+
/// Returns the unescaped character value if the current literal is a character literal.
14601460
#[unstable(feature = "proc_macro_value", issue = "136652")]
1461-
pub fn char_value(&self) -> Result<char, ConversionErrorKind> {
1461+
pub fn character_value(&self) -> Result<char, ConversionErrorKind> {
14621462
self.0.symbol.with(|symbol| match self.0.kind {
14631463
bridge::LitKind::Char => {
14641464
unescape_char(symbol).map_err(ConversionErrorKind::FailedToUnescape)

0 commit comments

Comments
 (0)