Fix another typo

Co-authored-by: kennytm <kennytm@gmail.com>
This commit is contained in:
Jules Bertholet 2024-05-06 17:44:05 -04:00 committed by GitHub
parent f42a677d6d
commit 6081324b2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ let [&a] = &[&0u8]; // `a` is `u8` on edition ≤ 2021, but `&u8` on edition ≥
let [mut a] = &[0u8]; // `a` is `u8` on edition ≤ 2021, but `&u8` on edition ≥ 2024 let [mut a] = &[0u8]; // `a` is `u8` on edition ≤ 2021, but `&u8` on edition ≥ 2024
``` ```
Instances of such incompatibilities appear to be common, but far from unknown Instances of such incompatibilities appear to be uncommon, but far from unknown
(20 cases in `rustc`, for example). The migration lint for the feature entirely (20 cases in `rustc`, for example). The migration lint for the feature entirely
desugars the match ergonomics of the affected pattern. This is necessary to desugars the match ergonomics of the affected pattern. This is necessary to
produce code that works on all editions, but it means that adopting the new produce code that works on all editions, but it means that adopting the new