Skip to content

Commit 54bca55

Browse files
let-else, fix a never type link
Co-authored-by: J. Frimmel <[email protected]>
1 parent 89c5b6e commit 54bca55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-let-else.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Any refutable pattern that could be put into if-let's pattern position can be pu
222222

223223
If the pattern is irrefutable, rustc will emit the `irrefutable_let_patterns` warning lint, as it does with an irrefutable pattern in an `if let`.
224224

225-
The `else` block must _diverge_, meaning the `else` block must return the [never type (`!`)][never type]).
225+
The `else` block must _diverge_, meaning the `else` block must return the [never type (`!`)][never-type]).
226226
This could be a keyword which diverges (returns `!`), or a panic.
227227

228228
If the pattern does not match, the expression is not consumed, and so any existing variables from the surrounding scope are

0 commit comments

Comments
 (0)