aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2014-05-20 14:41:24 -0400
committerShenghou Ma <minux.ma@gmail.com>2014-05-20 14:41:24 -0400
commit8aa8348b5161470b5b46477f547a40a2a393686e (patch)
tree1314fdfec76d51fddf7fdfa8a7ba5953773d52dd
parent2fed8c7667a1411a4415d5a28672836e9b31fd07 (diff)
downloadgo-8aa8348b5161470b5b46477f547a40a2a393686e.tar.gz
go-8aa8348b5161470b5b46477f547a40a2a393686e.zip
runtime: revise the document of Version()
Fixes #7701. (again, differently) LGTM=rsc R=iant, rsc CC=golang-codereviews https://golang.org/cl/94560043
-rw-r--r--src/pkg/runtime/extern.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pkg/runtime/extern.go b/src/pkg/runtime/extern.go
index 2466911dd6..053dc10147 100644
--- a/src/pkg/runtime/extern.go
+++ b/src/pkg/runtime/extern.go
@@ -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
}