hare

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

commit dec2748f77ebb811f05c876ae9e72f1f312bf2c8
parent 676ea80bc1f495ab3bbd1406a63c2e3a8c2ca7b8
Author: Vlad-Stefan Harbuz <vlad@vladh.net>
Date:   Fri,  5 May 2023 21:38:59 +0100

regex: clarify returned result in README

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

diff --git a/regex/README b/regex/README @@ -12,10 +12,10 @@ returned. This implementation computes matches in linear time. assert(regex::test(&re, "Let's all love Harriet and Hare")); - // {"Harriet", "riet"} const result = regex::find(&re, "Let's all love Harriet and Hare"); + // -> {"Harriet", "riet"} defer regex::result_free(result); - // {{"Harriet", "riet"}, {"Hare", "e"}} const results = regex::findall(&re, "Let's all love Harriet and Hare"); + // -> {{"Harriet", "riet"}, {"Hare", "e"}} defer regex::result_freeall(results);