Skip to content

Commit 1a21dab

Browse files
committed
Rollup merge of #31366 - paulsmith:patch-1, r=steveklabnik
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
2 parents 8665021 + b2e887f commit 1a21dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/guessing-game.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ it’s called on, and if it isn’t a successful one, [`panic!`][panic]s with a
276276
message you passed it. A `panic!` like this will cause our program to crash,
277277
displaying the message.
278278

279-
[expect]: ../std/option/enum.Option.html#method.expect
279+
[expect]: ../std/result/enum.Result.html#method.expect
280280
[panic]: error-handling.html
281281

282282
If we leave off calling this method, our program will compile, but

0 commit comments

Comments
 (0)