From b2e887f0aa81e0751e30165d599ef97614320645 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 2 Feb 2016 08:47:23 -0600 Subject: [PATCH] Fix reference to `expect` The context of the link is `Result` but it points to the docs on `Option`'s `expect`. --- src/doc/book/guessing-game.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/guessing-game.md b/src/doc/book/guessing-game.md index 861ef6810f54a..a5259e9ca4c42 100644 --- a/src/doc/book/guessing-game.md +++ b/src/doc/book/guessing-game.md @@ -276,7 +276,7 @@ it’s called on, and if it isn’t a successful one, [`panic!`][panic]s with a message you passed it. A `panic!` like this will cause our program to crash, displaying the message. -[expect]: ../std/option/enum.Option.html#method.expect +[expect]: ../std/result/enum.Result.html#method.expect [panic]: error-handling.html If we leave off calling this method, our program will compile, but