diff options
| author | Robert Griesemer <gri@golang.org> | 2011-07-14 14:39:40 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-07-14 14:39:40 -0700 |
| commit | 90564a92565877d19e456694ac4e2ef205720432 (patch) | |
| tree | 8cb7e9ba936b3721ed7e3120e95fa419859ea20f /src/pkg/strings | |
| parent | 58e19aa4cb8656cdb757172647dfcb028029185e (diff) | |
| download | go-90564a92565877d19e456694ac4e2ef205720432.tar.xz | |
go/printer: changed max. number of newlines from 3 to 2
manual changes in src/pkg/go/printer, src/cmd/gofix/signal_test.go
(cd src/cmd/gofix/testdata; gofmt -w *.in *.out)
(cd src/pkg/go/printer; gotest -update)
gofmt -w misc src
runs all tests
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4715041
Diffstat (limited to 'src/pkg/strings')
| -rw-r--r-- | src/pkg/strings/reader.go | 1 | ||||
| -rw-r--r-- | src/pkg/strings/strings.go | 1 | ||||
| -rw-r--r-- | src/pkg/strings/strings_test.go | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/src/pkg/strings/reader.go b/src/pkg/strings/reader.go index 8423f7e452..eb515de006 100644 --- a/src/pkg/strings/reader.go +++ b/src/pkg/strings/reader.go @@ -43,7 +43,6 @@ func (r *Reader) ReadByte() (b byte, err os.Error) { return } - // UnreadByte moves the reading position back by one byte. // It is an error to call UnreadByte if nothing has been // read yet. diff --git a/src/pkg/strings/strings.go b/src/pkg/strings/strings.go index 6afbc7dc2f..c547297e66 100644 --- a/src/pkg/strings/strings.go +++ b/src/pkg/strings/strings.go @@ -363,7 +363,6 @@ func Repeat(s string, count int) string { return string(b) } - // ToUpper returns a copy of the string s with all Unicode letters mapped to their upper case. func ToUpper(s string) string { return Map(unicode.ToUpper, s) } diff --git a/src/pkg/strings/strings_test.go b/src/pkg/strings/strings_test.go index c546173393..409d4da0e2 100644 --- a/src/pkg/strings/strings_test.go +++ b/src/pkg/strings/strings_test.go @@ -170,7 +170,6 @@ func BenchmarkIndex(b *testing.B) { } } - type ExplodeTest struct { s string n int @@ -325,7 +324,6 @@ func TestFieldsFunc(t *testing.T) { } } - // Test case for any function which accepts and returns a single string. type StringTest struct { in, out string |
