Skip to content

Commit

Permalink
Update step-3.md: markup error in http://ocaml-sf.org/learn-ocaml/tut…
Browse files Browse the repository at this point in the history
…orials/step-3.html

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
  • Loading branch information
Naereen authored and yurug committed Feb 17, 2021
1 parent 97a781b commit 61941cd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions docs/tutorials/step-3.md
Expand Up @@ -84,7 +84,7 @@ let exercise_3 =
`exercises/advanced-examples-step-3` directory (branch: step-3).

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

* list
Expand All @@ -104,7 +104,6 @@ let exercise_2 =
~sampler:(fun () -> (Random.int 10, Random.int 10))
[]
```

* type option
```ocaml
let exercise_3 =
Expand All @@ -124,9 +123,7 @@ let exercise_4 =
~sampler:sampler_4
[]
```

* functional type

```ocaml
let sampler_5 () =
let sampler_f () = match Random.int 3 with
Expand All @@ -144,9 +141,7 @@ let exercise_5 =
[]
```

* array

```ocaml
let sampler_6 =
sample_array ~min_size:1 ~max_size:10 sample_int
Expand All @@ -158,7 +153,3 @@ let exercise_6 =
~sampler:sampler_6
[]
```




0 comments on commit 61941cd

Please sign in to comment.