Skip to content

Commit

Permalink
cmd/go: fix 'go help <command>'
Browse files Browse the repository at this point in the history
It depended on the old behavior of functions in structs.

R=golang-dev, rsc
CC=golang-dev, r
https://golang.org/cl/5656076
  • Loading branch information
bpowers authored and rsc committed Feb 16, 2012
1 parent 11f4a6c commit 8098d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Use "go help [topic]" for more information about that topic.
`

var helpTemplate = `{{if .Run}}usage: go {{.UsageLine}}
var helpTemplate = `{{if .Runnable}}usage: go {{.UsageLine}}
{{end}}{{.Long | trim}}
`
Expand All @@ -169,7 +169,7 @@ var documentationTemplate = `// Copyright 2011 The Go Authors. All rights reser
/*
{{range .}}{{if .Short}}{{.Short | capitalize}}
{{end}}{{if .Run}}Usage:
{{end}}{{if .Runnable}}Usage:
go {{.UsageLine}}
Expand Down

0 comments on commit 8098d71

Please sign in to comment.