Skip to content

Commit

Permalink
Fix missing newline in Arrays (#2951)
Browse files Browse the repository at this point in the history
Co-authored-by: Emerik Aji <[email protected]>
  • Loading branch information
emerikaji and Emerik Aji authored Feb 12, 2025
1 parent 7e05254 commit 400b65c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/tutorials/language/3ds_01_arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ These functions derive a single value from the whole array. For example, they ca
To sort an array, we can use the `Array.sort` function. This function takes as arguments:
- a comparison function
- an array

It sorts the provided array in place and in ascending order, according to the provided comparison function. Sorting performed by `Array.sort` modifies the content of the provided array, which is why it returns `unit`. For example, to sort the array `even_numbers` created above, we can use:

```ocaml
Expand Down

0 comments on commit 400b65c

Please sign in to comment.