From 08bb6db1fa9e9db02515070259e16879c63acc5d Mon Sep 17 00:00:00 2001 From: Steven Degutis Date: Sat, 17 Mar 2012 12:11:22 -0500 Subject: [PATCH] updating some things --- README.md | 6 ++++++ about_strings.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 176a0ca..c134bd9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,12 @@ Since the `$GOPATH` is useful any time in Go, this is recommended: $ git clone https://sdegutis@github.com/sdegutis/go-koans.git $ cd go-koans +### Getting Help + +Two super useful references are the [spec](http://weekly.golang.org/ref/spec) and the [packages](http://weekly.golang.org/pkg/) listing. + +You can also run the Go website locally with `godoc -http=:8080` so you don't need the internet. Then open [http://localhost:8080/ref/spec](http://localhost:8080/ref/spec) and [http://localhost:8080/pkg/](http://localhost:8080/pkg/). + ### Usage $ go test diff --git a/about_strings.go b/about_strings.go index 5a2a9b5..83fdc17 100644 --- a/about_strings.go +++ b/about_strings.go @@ -24,7 +24,7 @@ func aboutStrings() { assert(fmt.Sprintf("hello %s", __string__) == "hello world") // our old friend sprintf returns assert(fmt.Sprintf("hello \"%s\"", "world") == __string__) // quoting is familiar - assert(fmt.Sprintf("hello %q", "world") == __string__) // although it can be done easilier + assert(fmt.Sprintf("hello %q", "world") == __string__) // although it can be done more easily assert(fmt.Sprintf("your balance: %d and %0.2f", 3, 4.5589) == __string__) // "the root of all evil" is actually a misquotation, by the way }