Skip to content

Commit

Permalink
Update tut. to not sound like I missed a section
Browse files Browse the repository at this point in the history
The sentence "Remember that `(float, float)` is a tuple of two floats"
sounds like you've already read a section on tuples, but that section
comes later. Changing it to "Assuming that ..." makes it more about
taking the writer's word that the syntax is how tuples are defined.
  • Loading branch information
brettcannon committed Apr 3, 2013
1 parent 6153aae commit 8dd5a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ omitted.

A powerful application of pattern matching is *destructuring*:
matching in order to bind names to the contents of data
types. Remember that `(float, float)` is a tuple of two floats:
types. Assuming that `(float, float)` is a tuple of two floats:

~~~~
fn angle(vector: (float, float)) -> float {
Expand Down

0 comments on commit 8dd5a70

Please sign in to comment.