Skip to content

Commit 61941cd

Browse files
Naereenyurug
authored andcommitted
Hello there, I just discovered this amazing project, and I'm reading the documentation. On http://ocaml-sf.org/learn-ocaml/tutorials/step-3.html there is an error on line type option ```ocam I'm no sure if this PR fixes it though
1 parent 97a781b commit 61941cd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

docs/tutorials/step-3.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ let exercise_3 =
8484
`exercises/advanced-examples-step-3` directory (branch: step-3).
8585

8686
There is nothing new to learn in this part, there are only more
87-
examples of how to build a sampler for more complexed types. In
87+
examples of how to build a sampler for more complexe types. In
8888
particular, there are examples with:
8989

9090
* list
@@ -104,7 +104,6 @@ let exercise_2 =
104104
~sampler:(fun () -> (Random.int 10, Random.int 10))
105105
[]
106106
```
107-
108107
* type option
109108
```ocaml
110109
let exercise_3 =
@@ -124,9 +123,7 @@ let exercise_4 =
124123
~sampler:sampler_4
125124
[]
126125
```
127-
128126
* functional type
129-
130127
```ocaml
131128
let sampler_5 () =
132129
let sampler_f () = match Random.int 3 with
@@ -144,9 +141,7 @@ let exercise_5 =
144141
[]
145142
146143
```
147-
148144
* array
149-
150145
```ocaml
151146
let sampler_6 =
152147
sample_array ~min_size:1 ~max_size:10 sample_int
@@ -158,7 +153,3 @@ let exercise_6 =
158153
~sampler:sampler_6
159154
[]
160155
```
161-
162-
163-
164-

0 commit comments

Comments
 (0)