Fix reference to expect

The context of the link is `Result` but it points to the docs on `Option`'s `expect`.
This commit is contained in:
Paul Smith 2016-02-02 08:47:23 -06:00
parent ddd1bf594f
commit b2e887f0aa

View file

@ -276,7 +276,7 @@ its called on, and if it isnt 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