From f0d0cbfff8d1aadda1cdb3b914361f3355c9a9cc Mon Sep 17 00:00:00 2001 From: Bryan Dunsmore Date: Sun, 7 Apr 2013 16:49:44 -0500 Subject: [PATCH] Include definition of tuples for destructuring. Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132. --- doc/tutorial.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 902a79029725e..1ac33fe658588 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -495,7 +495,10 @@ 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 later. For now you can think of tuples as a list of items. ~~~~ fn angle(vector: (float, float)) -> float {