]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go_tutorial: mention order of compilation
authorAndrew Gerrand <adg@golang.org>
Mon, 5 Jul 2010 06:25:29 +0000 (16:25 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 5 Jul 2010 06:25:29 +0000 (16:25 +1000)
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

doc/go_tutorial.html

index 7eb09b5b4b60880190d20c3049cf66170d24d43b..b16f320178329992d09b0236edc95f5747229b4e 100644 (file)
@@ -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>