aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam/regex.gleam8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gleam/regex.gleam b/src/gleam/regex.gleam
index 3df42bb..307d679 100644
--- a/src/gleam/regex.gleam
+++ b/src/gleam/regex.gleam
@@ -41,14 +41,14 @@ pub type Options {
/// ```gleam
/// > let options = Options(case_insensitive: False, multi_line: True)
/// > assert Ok(re) = compile("^[0-9]", with: options)
-/// > match(re, "abc\n123")
+/// > check(re, "abc\n123")
/// True
/// ```
///
/// ```gleam
/// > let options = Options(case_insensitive: True, multi_line: False)
/// > assert Ok(re) = compile("[A-Z]", with: options)
-/// > match(re, "abc123")
+/// > check(re, "abc123")
/// True
/// ```
///
@@ -75,12 +75,12 @@ if javascript {
///
/// ```gleam
/// > assert Ok(re) = from_string("[0-9]")
-/// > match(re, "abc123")
+/// > check(re, "abc123")
/// True
/// ```
///
/// ```gleam
-/// > match(re, "abcxyz")
+/// > check(re, "abcxyz")
/// False
/// ```
///