From 3073ba4ca34ecbba9da61112cb420a4cfadd4bf2 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Mon, 23 Sep 2013 22:30:42 -0400 Subject: [PATCH] Fix signature of Result in tasks tutorial. Closes #8343 --- doc/tutorial-tasks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial-tasks.md b/doc/tutorial-tasks.md index e1f70a19e52..3ab44cb5441 100644 --- a/doc/tutorial-tasks.md +++ b/doc/tutorial-tasks.md @@ -423,7 +423,7 @@ do_some_work(); While it isn't possible for a task to recover from failure, tasks may notify each other of failure. The simplest way of handling task failure is with the `try` function, which is similar to `spawn`, but immediately blocks waiting -for the child task to finish. `try` returns a value of type `Result`. `Result` is an `enum` type with two variants: `Ok` and `Err`. In this case, because the type arguments to `Result` are `int` and `()`, callers can pattern-match on a result to check whether it's an `Ok` result with an `int`