Skip to content

Commit b2e887f

Browse files
committed
Fix reference to expect
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
1 parent ddd1bf5 commit b2e887f

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)