Skip to content

Commit

Permalink
regexp: document that it is linear in the input size.
Browse files Browse the repository at this point in the history
Fixes #7488.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/78050043
  • Loading branch information
robpike committed Mar 25, 2014
1 parent 132e816 commit c790b02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pkg/regexp/regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
// For an overview of the syntax, run
// 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.
//
// There are 16 methods of Regexp that match a regular expression and identify
Expand Down

0 comments on commit c790b02

Please sign in to comment.