Skip to content

Commit c101f75

Browse files
committed
---
yaml --- r: 35468 b: refs/heads/master c: 645bd98 h: refs/heads/master v: v3
1 parent 5e6d4ee commit c101f75

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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: fb498ff59f3de4da58d9f6e90fd989482c901fc5
2+
refs/heads/master: 645bd98b602500ef910685eeeb899df298221e35
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/doc/tutorial.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,8 @@ combination of arguments of the appropriate types. The usual way is to write
18381838
a function that returns `Option<T>` instead of `T`.
18391839

18401840
~~~~
1841+
# struct Point {x: float, y: float}
1842+
# enum Shape { Circle(Point, float), Rectangle(Point, Point) }
18411843
fn radius(shape: Shape) -> Option<float> {
18421844
match shape {
18431845
Circle(_, radius) => Some(radius),

0 commit comments

Comments
 (0)