Commit 0cd0c3e8 authored by Rob Pike's avatar Rob Pike

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
parent 05ac3008
...@@ -1774,7 +1774,7 @@ func init() { ...@@ -1774,7 +1774,7 @@ func init() {
log.Fatal("$USER not set") log.Fatal("$USER not set")
} }
if HOME == "" { if HOME == "" {
HOME = "/usr/" + USER HOME = "/home/" + USER
} }
if GOROOT == "" { if GOROOT == "" {
GOROOT = HOME + "/go" GOROOT = HOME + "/go"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment