From ac2bf6e25036224bfadf12c66e7403419fa95b61 Mon Sep 17 00:00:00 2001 From: Kashav Madan Date: Fri, 15 Mar 2024 16:20:39 -0400 Subject: [PATCH] Fix a typo in the pattern matching file --- book/types/pattern_matching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/types/pattern_matching.md b/book/types/pattern_matching.md index 510dcf85..f39cfe36 100644 --- a/book/types/pattern_matching.md +++ b/book/types/pattern_matching.md @@ -31,7 +31,7 @@ toName user = The `case` expression allows us to branch based on which variant we happen to see, so whether we see Thomas or Kate, we always know how to show their name. -And if we try invalid arguments like `toName (Visitar "kate95")` or `toName Anonymous`, the compiler tells us about it immediately. This means many simple mistakes can be fixed in seconds, rather than making it to users and costing a lot more time overall. +And if we try invalid arguments like `toName (Visitor "kate95")` or `toName Anonymous`, the compiler tells us about it immediately. This means many simple mistakes can be fixed in seconds, rather than making it to users and costing a lot more time overall. ## Wild Cards