Skip to content

Commit c16c7e8

Browse files
committed
docs wording
1 parent ffc7e07 commit c16c7e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/regex.nim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,13 @@ the scope, and it contains the submatches for every capture group.
286286
Bad UTF-8 input text
287287
####################
288288
289-
This lib makes no effort to handle bad/malformed UTF-8 input text.
290-
The behaviour on bad input is currently undefined, and it will
291-
likely result in an internal AssertionDefect or some other error.
289+
This lib makes no effort to handle invalid UTF-8 input text
290+
(i.e: malformed or corrupted). The behaviour on invalid input
291+
is currently undefined, and it will likely result in an
292+
internal AssertionDefect or some other error.
292293
293294
What can be done about this is validating the input text to avoid
294-
passing a bad input to the match function.
295+
passing invalid input to the match function.
295296
296297
.. code-block:: nim
297298
:test:

0 commit comments

Comments
 (0)