Skip to content

Commit 262c5bf

Browse files
committed
---
yaml --- r: 81815 b: refs/heads/master c: 835960a h: refs/heads/master i: 81813: 2cd0acb 81811: b96e5c7 81807: a394a41 v: v3
1 parent 3a14ba5 commit 262c5bf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 0275b1c4047c9213a3f55b36ab690ebedff3a4d5
2+
refs/heads/master: 835960a3331bdabc7f6251a66c284fe0a3b98d10
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/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<T,
426+
for the child task to finish. `try` returns a value of type `Result<int,
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`

trunk/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ fn area(sh: Shape) -> float {
737737
match sh {
738738
Circle { radius: radius, _ } => float::consts::pi * square(radius),
739739
Rectangle { top_left: top_left, bottom_right: bottom_right } => {
740-
(bottom_right.x - top_left.x) * (bottom_right.y - top_left.y)
740+
(bottom_right.x - top_left.x) * (top_left.y - bottom_right.y)
741741
}
742742
}
743743
}

0 commit comments

Comments
 (0)