]> Cypherpunks repositories - gostls13.git/commitdiff
effective_go: s/usr/home/ in example
authorRob Pike <r@golang.org>
Sun, 23 Sep 2012 00:44:56 +0000 (10:44 +1000)
committerRob Pike <r@golang.org>
Sun, 23 Sep 2012 00:44:56 +0000 (10:44 +1000)
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

doc/effective_go.html

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