We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c3ff1 commit a94c564Copy full SHA for a94c564
crates/ra_syntax/src/ast/expr_ext.rs
@@ -333,13 +333,12 @@ impl ast::Literal {
333
334
match token.kind() {
335
INT_NUMBER => {
336
- // FYI: there was a bug here previously, thus an if statement bellow is necessary.
+ // FYI: there was a bug here previously, thus the if statement below is necessary.
337
// The lexer treats e.g. `1f64` as an integer literal. See
338
// https://github.com/rust-analyzer/rust-analyzer/issues/1592
339
// and the comments on the linked PR.
340
341
let text = token.text();
342
-
343
if let suffix @ Some(_) = Self::find_suffix(&text, &FLOAT_SUFFIXES) {
344
LiteralKind::FloatNumber { suffix }
345
} else {
0 commit comments