diff options
author | Robert Griesemer <gri@golang.org> | 2010-03-26 16:33:59 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-03-26 16:33:59 -0700 |
commit | 72bf519063879c7aa02cffc4045383d2671caf7f (patch) | |
tree | 28b2b61832873adcdbc63ce1f48a0e8a04245697 /src | |
parent | 021b3719dd526f8c08317c6e746bc010daf15f93 (diff) | |
download | golang-72bf519063879c7aa02cffc4045383d2671caf7f.tar.gz |
fix build
R=r
CC=golang-dev
http://codereview.appspot.com/790041
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/testing/regexp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/testing/regexp.go b/src/pkg/testing/regexp.go index de30a13f9..cd37699ce 100644 --- a/src/pkg/testing/regexp.go +++ b/src/pkg/testing/regexp.go @@ -615,7 +615,7 @@ func CompileRegexp(str string) (regexp *Regexp, error string) { regexp.expr = str regexp.inst = make([]instr, 0, 20) error = regexp.doParse() - if error != nil { + if error != "" { regexp = nil } return |