From 2cdfa0359c8bd4fa9d3193a0773a16fd9be1b752 Mon Sep 17 00:00:00 2001 From: Thomas Depierre Date: Fri, 17 Feb 2023 18:05:01 +0100 Subject: [PATCH] Fix small error in readme example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dbad2e7..91d1685 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ iex> list = String.split("abc1def2ghi3jkl", pattern) The parser generator [nimble_parsec](https://hex.pm/packages/nimble_parsec) allows a list of codepoint ranges as parameters to several combinators. Unicode Set can generate such ranges: ``` -iex> Unicode.Set.utf8_char("[[^abcd][mnb]]") +iex> Unicode.Set.to_utf8_char("[[^abcd][mnb]]") [{:not, 97}, {:not, 98}, {:not, 99}, {:not, 100}, 98, 109, 110] ``` This can be used as shown in the following example: