From eceaaa4fbf280ae85406ce32c7662581d267239b Mon Sep 17 00:00:00 2001 From: Yorkin Date: Wed, 25 Dec 2024 17:26:58 +0800 Subject: [PATCH] tour: improve chapter2 lesson4 --- moonbit-tour/tour/chapter2_data_types/lesson4_newtype/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonbit-tour/tour/chapter2_data_types/lesson4_newtype/index.md b/moonbit-tour/tour/chapter2_data_types/lesson4_newtype/index.md index 7143fd9c..f143c67d 100644 --- a/moonbit-tour/tour/chapter2_data_types/lesson4_newtype/index.md +++ b/moonbit-tour/tour/chapter2_data_types/lesson4_newtype/index.md @@ -2,5 +2,5 @@ Newtypes are similar to enums with only one constructor (with the same name as the newtype itself). You can use the constructor to create values of the newtype and use `._` to extract the internal representation. -*Pattern matching* can also be used. +You can also use *pattern matching* with newtypes.