@@ -166,15 +166,17 @@ pub enum DocStyle {
166
166
Inner ,
167
167
}
168
168
169
- // Note that the suffix is *not* considered when deciding the `LiteralKind` in
170
- // this type. This means that float literals like `1f32` are classified by this
171
- // type as `Int`. (Compare against `rustc_ast::token::LitKind` and
172
- // `rustc_ast::ast::LitKind.)
169
+ /// Enum representing the literal types supported by the lexer.
170
+ ///
171
+ /// Note that the suffix is *not* considered when deciding the `LiteralKind` in
172
+ /// this type. This means that float literals like `1f32` are classified by this
173
+ /// type as `Int`. (Compare against `rustc_ast::token::LitKind` and
174
+ /// `rustc_ast::ast::LitKind`).
173
175
#[ derive( Clone , Copy , Debug , PartialEq , Eq , PartialOrd , Ord ) ]
174
176
pub enum LiteralKind {
175
177
/// "12_u8", "0o100", "0b120i99", "1f32".
176
178
Int { base : Base , empty_int : bool } ,
177
- /// "12.34f32", "1e3", but not "1f32` .
179
+ /// "12.34f32", "1e3", but not "1f32" .
178
180
Float { base : Base , empty_exponent : bool } ,
179
181
/// "'a'", "'\\'", "'''", "';"
180
182
Char { terminated : bool } ,
0 commit comments