Skip to content

Commit

Permalink
tour: improve chapter2 lesson4
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoorkin committed Dec 25, 2024
1 parent 4530fe3 commit eceaaa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit eceaaa4

Please sign in to comment.