diff --git a/doc/effective_go.html b/doc/effective_go.html index 7eceac5d82..9d002c5043 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -44,8 +44,8 @@ use the language. Moreover, many of the packages contain working, self-contained executable examples you can run directly from the golang.org web site, such as -this one (click -on the word "Example" to open it up). +this one (if +necessary, click on the word "Example" to open it up). If you have a question about how to approach a problem or how something might be implemented, the documentation, code and examples in the library can provide answers, ideas and @@ -839,10 +839,10 @@ func Compare(a, b []byte) int { } } switch { - case len(a) < len(b): - return -1 case len(a) > len(b): return 1 + case len(a) < len(b): + return -1 } return 0 }