mirror of
https://github.com/golang/go
synced 2024-11-02 08:01:26 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue