Skip to content

Commit ed7d1f9

Browse files
authored
Rollup merge of rust-lang#142072 - maflcko:patch-1, r=aDotInTheVoid
doc: Fix inverted meaning in E0783.md `...` (three dots) was the old way of saying `..=`, which both denote the *inclusive* range, not the *exclusive* one.
2 parents 2f7de4f + 79fbc38 commit ed7d1f9

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+1
-1
lines changed

compiler/rustc_error_codes/src/error_codes/E0783.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ match 2u8 {
99
}
1010
```
1111

12-
Older Rust code using previous editions allowed `...` to stand for exclusive
12+
Older Rust code using previous editions allowed `...` to stand for inclusive
1313
ranges which are now signified using `..=`.
1414

1515
To make this code compile replace the `...` with `..=`.

0 commit comments

Comments
 (0)