]> Cypherpunks repositories - gostls13.git/commitdiff
fix build - missing from 35404
authorRuss Cox <rsc@golang.org>
Tue, 6 Oct 2009 23:06:34 +0000 (16:06 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 6 Oct 2009 23:06:34 +0000 (16:06 -0700)
TBR=gri
OCL=35411
CL=35411

src/pkg/go/doc/doc.go

index 9357830b571804b46c0394164319cc84d07b0cdc..9b6b34d6b61bf0d155e98f27eb5a04adb9bf8a2e 100644 (file)
@@ -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.