runtime: revise the document of Version()

Fixes #7701. (again, differently)

LGTM=rsc
R=iant, rsc
CC=golang-codereviews
https://golang.org/cl/94560043
This commit is contained in:
Shenghou Ma 2014-05-20 14:41:24 -04:00
parent 2fed8c7667
commit 8aa8348b51
1 changed files with 2 additions and 4 deletions

View File

@ -190,10 +190,8 @@ func GOROOT() string {
}
// Version returns the Go tree's version string.
// It is either a sequence number or, when possible,
// a release tag like "release.2010-03-04".
// A trailing + indicates that the tree had local modifications
// at the time of the build.
// It is either the commit hash and date at the time of the build or,
// when possible, a release tag like "go1.3".
func Version() string {
return theVersion
}