diff --git a/src/pkg/regexp/regexp.go b/src/pkg/regexp/regexp.go index 4dd430ea699..aa90eb321b6 100644 --- a/src/pkg/regexp/regexp.go +++ b/src/pkg/regexp/regexp.go @@ -16,8 +16,14 @@ // '$' // '.' // character -// '[' [ '^' ] character-ranges ']' +// '[' [ '^' ] { character-range } ']' // '(' regexp ')' +// character-range: +// character '-' character +// +// All characters are UTF-8-encoded code points. +// Backslashes escape special characters, including inside +// character classes. // package regexp