Skip to content

Commit 5c69335

Browse files
committed
docs wording
1 parent f026f3d commit 5c69335

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/regex.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ This lib makes no effort to handle bad/malformed UTF-8 input text.
290290
The behaviour on bad input is currently undefined, and it will
291291
likely result in an internal AssertionDefect or some other error.
292292
293-
What can be done about this is validating the input text before
294-
passing it to the match function.
293+
What can be done about this is validating the input text to avoid
294+
passing a bad input to the match function.
295295
296296
.. code-block:: nim
297297
:test:
@@ -305,7 +305,7 @@ Match binary data
305305
#################
306306
307307
Matching on arbitrary binary data (i.e: not utf-8) is not currently supported.
308-
Both the regex and the input text are assumed to be valid utf-8.
308+
Both the regex and the input text are expected to be valid utf-8.
309309
The input text is treated as utf-8, and setting the regex to ASCII mode
310310
won't help.
311311

0 commit comments

Comments
 (0)