From: Shulhan Date: Sun, 5 May 2019 03:25:46 +0000 (+0800) Subject: doc: use consistent path in example code X-Git-Tag: go1.13beta1~324 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c2f7dd182ea54d53897b16bbab231a59e2a29ba0;p=gostls13.git doc: use consistent path in example code Previous section of documentation said that if GOPATH is not set then it will be default to "$HOME/go", not "$HOME/work". This change fix the path in example code to "$HOME/go", and while at it fix the output of git command after commit. Change-Id: Ifedca6c3997efd07e865c27b7321d755acad0254 Reviewed-on: https://go-review.googlesource.com/c/go/+/175258 Reviewed-by: Andrew Bonventre --- diff --git a/doc/code.html b/doc/code.html index b6d41ef68c..1e380001e0 100644 --- a/doc/code.html +++ b/doc/code.html @@ -304,12 +304,12 @@ optional: you do not need to use source control to write Go code.
 $ cd $GOPATH/src/github.com/user/hello
 $ git init
-Initialized empty Git repository in /home/user/work/src/github.com/user/hello/.git/
+Initialized empty Git repository in /home/user/go/src/github.com/user/hello/.git/
 $ git add hello.go
 $ git commit -m "initial commit"
 [master (root-commit) 0b4507d] initial commit
- 1 file changed, 1 insertion(+)
-  create mode 100644 hello.go
+ 1 file changed, 7 insertion(+)
+ create mode 100644 hello.go