Skip to content

Commit e2904f8

Browse files
committed
Auto merge of #339 - robinst:patch-2, r=BurntSushi
docs: Fix unescaped `[` in character class Compiling the regex as it was documented before results in: > Syntax("Error parsing regex near \'-/:-@[-`{-\' at character offset 7: Use of unescaped \'[\' in character class is not allowed.")
2 parents 4bbff94 + 81d06e1 commit e2904f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ These classes are based on the definitions provided in
430430
[[:graph:]] graphical ([!-~])
431431
[[:lower:]] lower case ([a-z])
432432
[[:print:]] printable ([ -~])
433-
[[:punct:]] punctuation ([!-/:-@[-`{-~])
433+
[[:punct:]] punctuation ([!-/:-@\[-`{-~])
434434
[[:space:]] whitespace ([\t\n\v\f\r ])
435435
[[:upper:]] upper case ([A-Z])
436436
[[:word:]] word characters ([0-9A-Za-z_])

0 commit comments

Comments
 (0)