Skip to content

Commit 2d9fb82

Browse files
cuvipercamelid
andauthored
Update posts/2021-02-11-Rust-1.50.0.md
Co-authored-by: Camelid <camelidcamel@gmail.com>
1 parent 4c96c01 commit 2d9fb82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posts/2021-02-11-Rust-1.50.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ fn main() {
5555
### `const` value repetition for arrays
5656

5757
Arrays in Rust can be written either as a list `[a, b, c]` or a repetition `[x; N]`.
58-
For lengths `N` greater than one, repetition has only been allowed for `Copy`
59-
types, and [RFC 2203] sought to allow any `const` expression there. However,
58+
For lengths `N` greater than one, repetition has only been allowed for `x`s that are `Copy`,
59+
and [RFC 2203] sought to allow any `const` expression there. However,
6060
while that feature was unstable for arbitrary expressions, its implementation
6161
since Rust 1.38 accidentally allowed stable use of `const` _values_ in array
6262
repetition.

0 commit comments

Comments
 (0)