1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:14:42 -07:00

effective_go: s/usr/home/ in example

When I was a lad (and well past), users were in /usr;
now they're somewhere else, I'm told.
Kids today.

Fixes #4122.

R=golang-dev, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/6552060
This commit is contained in:
Rob Pike 2012-09-23 10:44:56 +10:00
parent 05ac300830
commit 0cd0c3e8ca

View File

@ -1774,7 +1774,7 @@ func init() {
log.Fatal("$USER not set")
}
if HOME == "" {
HOME = "/usr/" + USER
HOME = "/home/" + USER
}
if GOROOT == "" {
GOROOT = HOME + "/go"