aboutsummaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-03-06 13:29:30 +0000
committerLouis Pilfold <louis@lpil.uk>2024-03-06 13:29:30 +0000
commit99c0abb1a17f17298ad8e78bc94b12b2b16ef8ac (patch)
tree36f1cab9ff6ed0b896c347dbd074092c1a63a74d /src/content
parent424601a08c0010857d0247616c18bb6db0781f0f (diff)
downloadtour-99c0abb1a17f17298ad8e78bc94b12b2b16ef8ac.tar.gz
tour-99c0abb1a17f17298ad8e78bc94b12b2b16ef8ac.zip
Document case for custom types
Diffstat (limited to 'src/content')
-rw-r--r--src/content/chapter3_data_types/lesson01_custom_types/en.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/chapter3_data_types/lesson01_custom_types/en.html b/src/content/chapter3_data_types/lesson01_custom_types/en.html
index 3a95f9f..34e51f2 100644
--- a/src/content/chapter3_data_types/lesson01_custom_types/en.html
+++ b/src/content/chapter3_data_types/lesson01_custom_types/en.html
@@ -4,6 +4,7 @@
</p>
<p>
A custom type is defined with the <code>type</code> keyword followed by the
- name of the type and a constructor for each <em>variant</em> of the type.
+ name of the type and a constructor for each <em>variant</em> of the type. Both
+ the type name and the names of the constructors start with uppercase letters.
</p>
<p>Custom type variants can be pattern matched on using a case expression.</p>