Skip to content

Commit 2a3ea11

Browse files
committed
Grammar: add the word "of" in functors tutorial
1 parent 9a8498a commit 2a3ea11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/tutorials/language/1ms_01_functors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Here is how this reads (starting from the bottom, then going up):
6363

6464
**Note**: Most set operations need to compare elements to check if they are the same. To allow using a user-defined comparison algorithm, the `Set.Make` functor takes a module the specifies both the element type `t` and the `compare` function. Passing the comparison function as a higher-order parameter, as done in `Array.sort`, for example, would add a lot of boilerplate code. Providing set operations as a functor allows specifying the comparison function only once.
6565

66-
Here is an example how to use `Set.Make`:
66+
Here is an example of how to use `Set.Make`:
6767

6868
**`funkt.ml`**
6969

0 commit comments

Comments
 (0)