diff options
Diffstat (limited to 'doc/code.html')
-rw-r--r-- | doc/code.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/code.html b/doc/code.html index 238cb0643..efbe7eed0 100644 --- a/doc/code.html +++ b/doc/code.html @@ -236,7 +236,7 @@ are built and installed correctly. <p> As a convenience, the <code>go</code> command will assume the current directory if no import path is specified on the command line. This sequence of commands -has the same affect as the one above: +has the same effect as the one above: </p> <pre> @@ -300,7 +300,8 @@ func main() { <p> Next, run <code>go install</code>, which builds and installs the binary to -<code>$GOPATH/bin</code>: +<code>$GOPATH/bin</code> (or <code>$GOBIN</code>, if set; to simplify +presentation, this document assumes <code>GOBIN</code> is unset): </p> <pre> @@ -384,7 +385,7 @@ package newmath import "testing" func TestSqrt(t *testing.T) { - const in, out = 9, 3 + const in, out = 4, 2 if x := Sqrt(in); x != out { t.Errorf("Sqrt(%v) = %v, want %v", in, x, out) } @@ -397,7 +398,7 @@ Now run the test with <code>go test</code>: <pre> $ go test example/newmath -ok example/newmath +ok example/newmath 0.165s </pre> <p> @@ -475,8 +476,8 @@ import "code.google.com/p/go.example/newmath" <p> This convention is the easiest way to make your Go packages available for others to use. -The <a href="http://godashboard.appspot.com/package">Go Package Dashboard</a> -displays a list of packages recently installed with the <code>go</code> command. +The <a href="http://godashboard.appspot.com">Go Project Dashboard</a> +is a list of external Go projects including programs and libraries. </p> <p> |