Rogue 'panic' -> 'fail' in guide.
Should refer to handling panicking tasks like any other computation that may _fail_, not any other computation that may _panic_.
This commit is contained in:
parent
830c82dd74
commit
2df9a085bd
1 changed files with 1 additions and 1 deletions
|
@ -5274,7 +5274,7 @@ let result = task::try(proc() {
|
|||
|
||||
This task will randomly panic or succeed. `task::try` returns a `Result`
|
||||
type, so we can handle the response like any other computation that may
|
||||
panic.
|
||||
fail.
|
||||
|
||||
# Macros
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue