about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Smith <paulsmith@users.noreply.github.com>2016-02-02 08:47:23 -0600
committerPaul Smith <paulsmith@users.noreply.github.com>2016-02-02 08:47:23 -0600
commitb2e887f0aa81e0751e30165d599ef97614320645 (patch)
tree831f1b04a8e0f0ecf60d5df6329447811da11eef
parentddd1bf594fdaf2f4a9ac3f03ffdb726f5121050e (diff)
downloadrust-b2e887f0aa81e0751e30165d599ef97614320645.tar.gz
rust-b2e887f0aa81e0751e30165d599ef97614320645.zip
Fix reference to `expect`
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
-rw-r--r--src/doc/book/guessing-game.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/guessing-game.md b/src/doc/book/guessing-game.md
index 861ef6810f5..a5259e9ca4c 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