auto merge of #5707 : brettcannon/rust/patch-1, r=thestinger
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.
This commit is contained in:
commit
1dc330c313
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user