]> git.lizzy.rs Git - rust.git/commitdiff
Fix reference to `expect`
authorPaul Smith <paulsmith@users.noreply.github.com>
Tue, 2 Feb 2016 14:47:23 +0000 (08:47 -0600)
committerPaul Smith <paulsmith@users.noreply.github.com>
Tue, 2 Feb 2016 14:47:23 +0000 (08:47 -0600)
The context of the link is `Result` but it points to the docs on `Option`'s `expect`.

src/doc/book/guessing-game.md

index 861ef6810f54a668fff55623f2edcea4cdb26439..a5259e9ca4c422867f5f1611238b0f948d4bae8b 100644 (file)
@@ -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