Commit 363a5da3 authored by Laurent Voisin's avatar Laurent Voisin Committed by Brad Fitzpatrick

cmd/go: fix typo in error message

Change-Id: I9b618de68a5f2c89caae06d35a153cda2f466b6a
Reviewed-on: https://go-review.googlesource.com/78678Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 207c53e0
...@@ -385,7 +385,7 @@ func (g *Generator) setShorthand(words []string) { ...@@ -385,7 +385,7 @@ func (g *Generator) setShorthand(words []string) {
} }
command := words[1] command := words[1]
if g.commands[command] != nil { if g.commands[command] != nil {
g.errorf("command %q defined multiply defined", command) g.errorf("command %q multiply defined", command)
} }
g.commands[command] = words[2:len(words):len(words)] // force later append to make copy g.commands[command] = words[2:len(words):len(words)] // force later append to make copy
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment