Commit 8aa8348b authored by Shenghou Ma's avatar Shenghou Ma

runtime: revise the document of Version()

Fixes #7701. (again, differently)

LGTM=rsc
R=iant, rsc
CC=golang-codereviews
https://golang.org/cl/94560043
parent 2fed8c76
...@@ -190,10 +190,8 @@ func GOROOT() string { ...@@ -190,10 +190,8 @@ func GOROOT() string {
} }
// Version returns the Go tree's version string. // Version returns the Go tree's version string.
// It is either a sequence number or, when possible, // It is either the commit hash and date at the time of the build or,
// a release tag like "release.2010-03-04". // when possible, a release tag like "go1.3".
// A trailing + indicates that the tree had local modifications
// at the time of the build.
func Version() string { func Version() string {
return theVersion return theVersion
} }
......
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