mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fmt: remove redundant parenthesis in the complex infix expr (#17873)
This commit is contained in:
parent
8452644ec3
commit
467a1b4435
44 changed files with 141 additions and 117 deletions
|
@ -163,7 +163,7 @@ fn parser(s string) (ParserState, PrepNumber) {
|
|||
}
|
||||
|
||||
// read mantissa decimals
|
||||
if (i < s.len) && (s[i] == `.`) {
|
||||
if i < s.len && s[i] == `.` {
|
||||
i++
|
||||
for i < s.len && s[i].is_digit() {
|
||||
if digx < strconv.digits {
|
||||
|
@ -177,7 +177,7 @@ fn parser(s string) (ParserState, PrepNumber) {
|
|||
}
|
||||
|
||||
// read exponent
|
||||
if (i < s.len) && ((s[i] == `e`) || (s[i] == `E`)) {
|
||||
if i < s.len && (s[i] == `e` || s[i] == `E`) {
|
||||
i++
|
||||
if i < s.len {
|
||||
// esponent sign
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue