Skip to content

Commit

Permalink
Merge pull request #375 from moonbitlang/lijunchen/fix-a-bad-condition
Browse files Browse the repository at this point in the history
fix a bad condition
  • Loading branch information
Yu-zh committed May 10, 2024
2 parents 0cabd27 + dd5bbe4 commit 130b0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time/util.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn remove_prefix_zero(s : String) -> String {
return s
}
let mut i = 0
while s[i] == '0' && i < s.length() {
while i < s.length() && s[i] == '0' {
i += 1
}
if i < s.length() {
Expand Down

0 comments on commit 130b0a2

Please sign in to comment.