Skip to content

Commit

Permalink
Update data/tutorials/language/1ds_01_arrays.md
Browse files Browse the repository at this point in the history
Co-authored-by: Christine Rose <[email protected]>
  • Loading branch information
gpetiot and christinerose authored Jul 31, 2023
1 parent 0d60592 commit 0385ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tutorials/language/1ds_01_arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To create an array in OCaml, you can use the `[| ...; ... |]` syntax, which allo
- : int array = [|1; 2; 3; 4; 5|]
```

Alternatively, you can create an array using the `Array.make` function, which takes two arguments: the length of the array and the initial value of each element. For example, to create an array of length 5 with all elements initialized to 0, you can write:
Alternatively, you can create an array using the `Array.make` function, which takes two arguments: the length of the array and the initial value of each element. For example, to create an array of length 5 with all elements initialised to 0, you can write:

```ocaml
# let zeroes = Array.make 5 0;;
Expand Down

0 comments on commit 0385ee2

Please sign in to comment.