We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18e3bcd + 3073ba4 commit 0275b1cCopy full SHA for 0275b1c
doc/tutorial-tasks.md
@@ -423,7 +423,7 @@ do_some_work();
423
While it isn't possible for a task to recover from failure, tasks may notify
424
each other of failure. The simplest way of handling task failure is with the
425
`try` function, which is similar to `spawn`, but immediately blocks waiting
426
-for the child task to finish. `try` returns a value of type `Result<int,
+for the child task to finish. `try` returns a value of type `Result<T,
427
()>`. `Result` is an `enum` type with two variants: `Ok` and `Err`. In this
428
case, because the type arguments to `Result` are `int` and `()`, callers can
429
pattern-match on a result to check whether it's an `Ok` result with an `int`
0 commit comments