aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-07-05 16:25:29 +1000
committerAndrew Gerrand <adg@golang.org>2010-07-05 16:25:29 +1000
commiteca2ec078640a3bdcbb9742318cc07085d2c80d2 (patch)
tree3c9c8eb5c31cfd69f27165951e427ede57bace43
parenta169e6cc6ab01330fbfd32f5175d68b72bf68295 (diff)
downloadgo-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.html8
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>