hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit eb1c21f154b6ff647e3f10b17e65b71d9cb4a4fa
parent 5f65a5c112dd15efc0f0223ee895c2582e8f4915
Author: Alexey Yerin <yyp@disroot.org>
Date:   Thu, 15 Feb 2024 12:22:49 +0300

sort: Replace []void with []opaque in README

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Msort/README | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sort/README b/sort/README @@ -3,6 +3,6 @@ sorted slices, such as binary search. The functions [[sort]] and [[search]] are provided for working with generic slices. In order to work with a user-supplied slice of an arbitrary type, the -slice must be cast to []void and the size of the member type passed alongside it -(e.g. size(int)). The functions also take in a [[cmpfunc]] argument, which is +slice must be cast to []opaque and the size of the member type passed alongside +it (e.g. size(int)). The functions also take in a [[cmpfunc]] argument, which is called to determine how the slice items should be ordered.