Commit c790b029 authored by Rob Pike's avatar Rob Pike

regexp: document that it is linear in the input size.

Fixes #7488.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/78050043
parent 132e8167
...@@ -11,6 +11,14 @@ ...@@ -11,6 +11,14 @@
// For an overview of the syntax, run // For an overview of the syntax, run
// godoc regexp/syntax // godoc regexp/syntax
// //
// The regexp implementation provided by this package is
// guaranteed to run in time linear in the size of the input.
// (This is a property not guaranteed by most open source
// implementations of regular expressions.) For more information
// about this property, see
// http://swtch.com/~rsc/regexp/regexp1.html
// or any book about automata theory.
//
// All characters are UTF-8-encoded code points. // All characters are UTF-8-encoded code points.
// //
// There are 16 methods of Regexp that match a regular expression and identify // There are 16 methods of Regexp that match a regular expression and identify
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment