1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:34:44 -07:00

cmd/go: clean up a couple of inconsequential nits in generate

Post-submit glitches caught by reviewers.

LGTM=nightlyone, bradfitz
R=golang-codereviews, nightlyone, bradfitz
CC=golang-codereviews
https://golang.org/cl/126660043
This commit is contained in:
Rob Pike 2014-08-25 13:47:38 -07:00
parent b2c43438d2
commit 958a6101eb
2 changed files with 1 additions and 2 deletions

View File

@ -161,7 +161,7 @@ type Generator struct {
// run runs the generators in the current file.
func (g *Generator) run() (ok bool) {
// Processing below here calls g.errorf on failure, which does panic(stop).
// If we encouter an error, we abort the package.
// If we encounter an error, we abort the package.
defer func() {
e := recover()
if e != nil {

View File

@ -26,7 +26,6 @@ var splitTests = []splitTest{
{"$GOPACKAGE", []string{"sys"}},
{"a $XXNOTDEFINEDXX b", []string{"a", "", "b"}},
{"/$XXNOTDEFINED/", []string{"//"}},
{"$GOARCH", []string{runtime.GOARCH}},
{"yacc -o $GOARCH/yacc_$GOFILE", []string{"go", "tool", "yacc", "-o", runtime.GOARCH + "/yacc_proc.go"}},
}