From 3d088abfa0d7745a887028fdd9b2ff4216fa1d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81=C4=99picki?= Date: Thu, 26 Jan 2023 20:47:26 +0100 Subject: Fix examples in regex docs (match -> check) --- src/gleam/regex.gleam | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 /// ``` /// -- cgit v1.2.3