Skip to content

Commit 0b2ffa5

Browse files
jhckraghbrson
authored andcommitted
tutorial: Add missing struct name
1 parent d5d7741 commit 0b2ffa5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -879,10 +879,10 @@ parentheses.
879879
# enum Direction { North, East, South, West }
880880
fn point_from_direction(dir: Direction) -> Point {
881881
match dir {
882-
North => {x: 0f, y: 1f},
883-
East => {x: 1f, y: 0f},
884-
South => {x: 0f, y: -1f},
885-
West => {x: -1f, y: 0f}
882+
North => Point {x: 0f, y: 1f},
883+
East => Point {x: 1f, y: 0f},
884+
South => Point {x: 0f, y: -1f},
885+
West => Point {x: -1f, y: 0f}
886886
}
887887
}
888888
~~~~

0 commit comments

Comments
 (0)