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

5 comments on commit 8dd5a70

@bors
Copy link
Contributor

@bors bors commented on 8dd5a70 Apr 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at brettcannon@8dd5a70

@bors
Copy link
Contributor

@bors bors commented on 8dd5a70 Apr 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging brettcannon/rust/patch-1 = 8dd5a70 into auto

@bors
Copy link
Contributor

@bors bors commented on 8dd5a70 Apr 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brettcannon/rust/patch-1 = 8dd5a70 merged ok, testing candidate = 1dc330c

@bors
Copy link
Contributor

@bors bors commented on 8dd5a70 Apr 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 8dd5a70 Apr 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 1dc330c

Please sign in to comment.