Skip to content

Commit

Permalink
auto merge of #5773 : dunsmoreb/rust/incoming, r=bstrie
Browse files Browse the repository at this point in the history
Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132.
  • Loading branch information
bors committed Apr 10, 2013
2 parents 7222801 + 08bc392 commit a425b75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,11 @@ omitted.
A powerful application of pattern matching is *destructuring*:
matching in order to bind names to the contents of data
types. Assuming that `(float, float)` is a tuple of two floats:
types.
> ***Note:*** The following code makes use of tuples (`(float, float)`) which
> are explained in section 5.3. For now you can think of tuples as a list of
> items.
~~~~
fn angle(vector: (float, float)) -> float {
Expand Down

0 comments on commit a425b75

Please sign in to comment.