aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Łępicki <michallepicki@users.noreply.github.com>2023-01-26 20:47:26 +0100
committerLouis Pilfold <louis@lpil.uk>2023-01-27 12:24:14 +0000
commit3d088abfa0d7745a887028fdd9b2ff4216fa1d2b (patch)
tree1848ea7efeb577d4a090016397ac996c8744d581
parent28ece48674fad5e4ad94ff2a545a142738955722 (diff)
downloadgleam_stdlib-3d088abfa0d7745a887028fdd9b2ff4216fa1d2b.tar.gz
gleam_stdlib-3d088abfa0d7745a887028fdd9b2ff4216fa1d2b.zip
Fix examples in regex docs (match -> check)
-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
/// ```
///