Skip to content

Commit 1d2e3ff

Browse files
Clean up E0730 explanation
1 parent 9e92106 commit 1d2e3ff

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-3
lines changed

src/librustc_error_codes/error_codes/E0730.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
An array without a fixed length was pattern-matched.
22

3-
Example of erroneous code:
3+
Erroneous code example:
44

55
```compile_fail,E0730
66
#![feature(const_generics)]
@@ -14,8 +14,8 @@ fn is_123<const N: usize>(x: [u32; N]) -> bool {
1414
}
1515
```
1616

17-
Ensure that the pattern is consistent with the size of the matched
18-
array. Additional elements can be matched with `..`:
17+
Ensure that the pattern is consistent with the size of the matched array.
18+
Additional elements can be matched with `..`:
1919

2020
```
2121
let r = &[1, 2, 3, 4];

0 commit comments

Comments
 (0)