From ca55ab4d0d0fbf2af954c3a5ba23ce026ccf022a Mon Sep 17 00:00:00 2001 From: Vlad Kovechenkov Date: Sun, 3 Dec 2023 17:21:15 +0100 Subject: [PATCH] Tour of OCaml - Pattern typo --- data/tutorials/getting-started/1_01_a_tour_of_ocaml.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/tutorials/getting-started/1_01_a_tour_of_ocaml.md b/data/tutorials/getting-started/1_01_a_tour_of_ocaml.md index 68fceb4e24..4a1bdb14cd 100644 --- a/data/tutorials/getting-started/1_01_a_tour_of_ocaml.md +++ b/data/tutorials/getting-started/1_01_a_tour_of_ocaml.md @@ -376,7 +376,7 @@ val map : ('a -> 'b) -> 'a list -> 'b list = ### Pattern Matching, Cont'd -Patten matching isn't limited to lists. Any kind of data can be inspected using it, except functions. Patterns are expressions that are compared to an inspected value. It could be performed using `if … then … else …`, but pattern matching is more convenient. Here is an example using the `option` data type that will be detailed in the [Modules and the Standard Library](#modules-and-the-standard-library) section. +Pattern matching isn't limited to lists. Any kind of data can be inspected using it, except functions. Patterns are expressions that are compared to an inspected value. It could be performed using `if … then … else …`, but pattern matching is more convenient. Here is an example using the `option` data type that will be detailed in the [Modules and the Standard Library](#modules-and-the-standard-library) section. ```ocaml # #show option;; type 'a option = None | Some of 'a