Skip to content

Commit 0275b1c

Browse files
committed
auto merge of #9450 : jzelinskie/rust/tutorial-tasks-result-signature, r=alexcrichton
2 parents 18e3bcd + 3073ba4 commit 0275b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ do_some_work();
423423
While it isn't possible for a task to recover from failure, tasks may notify
424424
each other of failure. The simplest way of handling task failure is with the
425425
`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,
426+
for the child task to finish. `try` returns a value of type `Result<T,
427427
()>`. `Result` is an `enum` type with two variants: `Ok` and `Err`. In this
428428
case, because the type arguments to `Result` are `int` and `()`, callers can
429429
pattern-match on a result to check whether it's an `Ok` result with an `int`

0 commit comments

Comments
 (0)