Skip to content

Commit

Permalink
fix(error_codes): use caret to annotate error
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfettes committed Feb 25, 2025
1 parent 831903c commit 982b209
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion next/language/error_codes/E3019.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ instead.
```moonbit
fn main {
match 0 {
0..=_ => println("Big than or equal to 0") // Error: Inclusive range pattern `a..=b` cannot have `_` as upper bound
0..=_ => println("Big than or equal to 0")
// ^
// Error: Inclusive range pattern `a..=b` cannot have `_` as upper bound
_ => println("Less than 0")
}
}
Expand Down

0 comments on commit 982b209

Please sign in to comment.