mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
godoc/vfs: improve comment on GOROOT
GOROOT is not a function, so use "is" instead of "returns". This was originally raised during review of golang.org/cl/131315. Also add a missing period. Change-Id: Ie28d38529889702ae5035d0f48d8122b6bee6819 Reviewed-on: https://go-review.googlesource.com/131316 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
6c1c5e93cd
commit
b776bcbf45
@ -17,9 +17,9 @@ import (
|
|||||||
// We expose a new variable because otherwise we need to copy the findGOROOT logic again
|
// We expose a new variable because otherwise we need to copy the findGOROOT logic again
|
||||||
// from cmd/godoc which is already copied twice from the standard library.
|
// from cmd/godoc which is already copied twice from the standard library.
|
||||||
|
|
||||||
// GOROOT returns the GOROOT path under which the godoc binary is running.
|
// GOROOT is the GOROOT path under which the godoc binary is running.
|
||||||
// It is needed to check whether a filesystem root is under GOROOT or not.
|
// It is needed to check whether a filesystem root is under GOROOT or not.
|
||||||
// This is set from cmd/godoc/main.go
|
// This is set from cmd/godoc/main.go.
|
||||||
var GOROOT = runtime.GOROOT()
|
var GOROOT = runtime.GOROOT()
|
||||||
|
|
||||||
// OS returns an implementation of FileSystem reading from the
|
// OS returns an implementation of FileSystem reading from the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user