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:
parent
b2c43438d2
commit
958a6101eb
@ -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 {
|
||||
|
@ -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"}},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user