File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments