diff options
Diffstat (limited to 'doc/tutorial/data.md')
| -rw-r--r-- | doc/tutorial/data.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/tutorial/data.md b/doc/tutorial/data.md index 0ae474aa54c..95ccb0ecec6 100644 --- a/doc/tutorial/data.md +++ b/doc/tutorial/data.md @@ -61,9 +61,10 @@ name as the field. {x, y} { /* Simply bind the fields */ } } -When you are not interested in all the fields of a record, a record -pattern may end with `, _` (as in `{field1, _}`) to indicate that -you're ignoring all other fields. +The field names of a record do not have to appear in a pattern in the +same order they appear in the type. When you are not interested in all +the fields of a record, a record pattern may end with `, _` (as in +`{field1, _}`) to indicate that you're ignoring all other fields. ## Tags |
