From a8c8f48be37192b54b243b56df95182040532169 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 19 May 2014 09:48:30 -0700 Subject: [PATCH] go.tools/all: the the thes are too frequent, it's clear that that's not what we want LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/98380043 --- cmd/goimports/doc.go | 2 +- go/ssa/ssa.go | 2 +- refactor/eg/eg.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/goimports/doc.go b/cmd/goimports/doc.go index f70b46d4..96b2be15 100644 --- a/cmd/goimports/doc.go +++ b/cmd/goimports/doc.go @@ -6,7 +6,7 @@ adding missing ones and removing unreferenced ones. $ go get code.google.com/p/go.tools/cmd/goimports It's a drop-in replacement for your editor's gofmt-on-save hook. -It has the the same command-line interface as gofmt and formats +It has the same command-line interface as gofmt and formats your code in the same way. For emacs, make sure you have the latest (Go 1.2+) go-mode.el: diff --git a/go/ssa/ssa.go b/go/ssa/ssa.go index 0b9deec8..113ba855 100644 --- a/go/ssa/ssa.go +++ b/go/ssa/ssa.go @@ -860,7 +860,7 @@ type SelectState struct { // If the chosen channel was used for a receive, the r_i component is // set to the received value, where i is the index of that state among // all n receive states; otherwise r_i has the zero value of type T_i. -// Note that the the receive index i is not the same as the state +// Note that the receive index i is not the same as the state // index index. // // The second component of the triple, recvOk, is a boolean whose value diff --git a/refactor/eg/eg.go b/refactor/eg/eg.go index ebb93b5b..76535aca 100644 --- a/refactor/eg/eg.go +++ b/refactor/eg/eg.go @@ -29,7 +29,7 @@ replacement. func before(s string) error { return fmt.Errorf("%s", s) } func after(s string) error { return errors.New(s) } -The expression statement form is useful when the the expression has no +The expression statement form is useful when the expression has no result, for example: func before(msg string) { log.Fatalf("%s", msg) }