commit 676ea80bc1f495ab3bbd1406a63c2e3a8c2ca7b8
parent 4472559c5f063cf5f961c0597fa777f4c83a1dfa
Author: Vlad-Stefan Harbuz <vlad@vladh.net>
Date: Fri, 5 May 2023 21:38:29 +0100
regex: fix typo
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/regex/README b/regex/README
@@ -10,12 +10,12 @@ returned. This implementation computes matches in linear time.
const re = regex::compile(`[H|h]ar(e|riet)`)!;
defer regex::finish(&re);
- assert(regex::test(&re, "Let's all love Harriet and hare"));
+ 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");
+ const result = regex::find(&re, "Let's all love Harriet and Hare");
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"}}
+ const results = regex::findall(&re, "Let's all love Harriet and Hare");
defer regex::result_freeall(results);