Skip to content

Commit 8dd5a70

Browse files
committedApr 3, 2013
Update tut. to not sound like I missed a section
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.
1 parent 6153aae commit 8dd5a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ omitted.
495495

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

500500
~~~~
501501
fn angle(vector: (float, float)) -> float {

5 commit comments

Comments
 (5)

bors commented on Apr 4, 2013

@bors
Collaborator

saw approval from thestinger
at brettcannon@8dd5a70

bors commented on Apr 4, 2013

@bors
Collaborator

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

bors commented on Apr 4, 2013

@bors
Collaborator

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

bors commented on Apr 4, 2013

@bors
Collaborator

fast-forwarding incoming to auto = 1dc330c

Please sign in to comment.