Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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