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:
parent
05ac300830
commit
0cd0c3e8ca
@ -1774,7 +1774,7 @@ func init() {
|
||||
log.Fatal("$USER not set")
|
||||
}
|
||||
if HOME == "" {
|
||||
HOME = "/usr/" + USER
|
||||
HOME = "/home/" + USER
|
||||
}
|
||||
if GOROOT == "" {
|
||||
GOROOT = HOME + "/go"
|
||||
|
Loading…
Reference in New Issue
Block a user