From: Russ Cox Date: Tue, 6 Oct 2009 23:06:34 +0000 (-0700) Subject: fix build - missing from 35404 X-Git-Tag: weekly.2009-11-06~388 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=13b1d5b1bb1e3fd411560639cbc5f62ff9c8a14e;p=gostls13.git fix build - missing from 35404 TBR=gri OCL=35411 CL=35411 --- diff --git a/src/pkg/go/doc/doc.go b/src/pkg/go/doc/doc.go index 9357830b57..9b6b34d6b6 100644 --- a/src/pkg/go/doc/doc.go +++ b/src/pkg/go/doc/doc.go @@ -232,6 +232,13 @@ var ( bug_content *regexp.Regexp; ) +func makeRex(s string) *regexp.Regexp { + re, err := regexp.Compile(s); + if err != nil { + panic("MakeRegexp ", s, " ", err.String()); + } + return re; +} // addFile adds the AST for a source file to the docReader. // Adding the same AST multiple times is a no-op.