Rollup merge of #25284 - petehunt:patch-1, r=steveklabnik

Noticed this while perusing the docs
This commit is contained in:
Manish Goregaokar 2015-05-11 19:58:56 +05:30
commit b0b6db6cb3

View File

@ -273,7 +273,7 @@ information. Why throw it away? Well, for a basic program, we just want to
print a generic error, as basically any issue means we cant continue. The
[`ok()` method][ok] returns a value which has another method defined on it:
`expect()`. The [`expect()` method][expect] takes a value its called on, and
if it isnt a successful one, [`panic!`][panic]s with a message you passed you
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.