diff options
author | Andrew Gerrand <adg@golang.org> | 2010-07-05 16:25:29 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-07-05 16:25:29 +1000 |
commit | eca2ec078640a3bdcbb9742318cc07085d2c80d2 (patch) | |
tree | 3c9c8eb5c31cfd69f27165951e427ede57bace43 | |
parent | a169e6cc6ab01330fbfd32f5175d68b72bf68295 (diff) | |
download | go-eca2ec078640a3bdcbb9742318cc07085d2c80d2.tar.gz go-eca2ec078640a3bdcbb9742318cc07085d2c80d2.zip |
doc/go_tutorial: mention order of compilation
In response to this recurring issue:
http://groups.google.com/group/golang-nuts/t/710d1e8347cd51fa
R=r
CC=golang-dev
https://golang.org/cl/1682050
-rw-r--r-- | doc/go_tutorial.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html index 7eb09b5b4b..b16f320178 100644 --- a/doc/go_tutorial.html +++ b/doc/go_tutorial.html @@ -650,8 +650,12 @@ We can now use our new package: 21 } </pre> <p> -The ''<code>./</code>'' in the import of ''<code>./file</code>'' tells the compiler to use our own package rather than -something from the directory of installed packages. +The ''<code>./</code>'' in the import of ''<code>./file</code>'' tells the +compiler to use the ''<code>file</code>'' package in the current directory +rather than something from the directory of installed packages. +</p> +<p> +You must compile ''<code>file.go</code>'' before any package that imports it. <p> Finally we can run the program: <p> |