]> Cypherpunks repositories - gostls13.git/commitdiff
pkg: Removing duplicated words ("of of", etc.), mostly from comments.
authorDavid G. Andersen <dave.andersen@gmail.com>
Sun, 8 Jul 2012 23:16:10 +0000 (09:16 +1000)
committerNigel Tao <nigeltao@golang.org>
Sun, 8 Jul 2012 23:16:10 +0000 (09:16 +1000)
Ran 'double.pl' on the pkg tree to identify doubled words.
One change to an error string return in x509;  the rest are in comments.
Thanks to Matt Jibson for the idea.

R=golang-dev, bsiegert
CC=golang-dev
https://golang.org/cl/6344089

src/pkg/crypto/x509/verify.go
src/pkg/database/sql/fakedb_test.go
src/pkg/go/doc/reader.go
src/pkg/html/template/url.go
src/pkg/mime/grammar.go
src/pkg/os/exec/exec.go
src/pkg/regexp/regexp.go
src/pkg/unsafe/unsafe.go

index 91506e87bb0a3b7a379946d71f476541c758bdb1..68929c7bb680f34475c1b3c9531203d91aad93b8 100644 (file)
@@ -42,7 +42,7 @@ type CertificateInvalidError struct {
 func (e CertificateInvalidError) Error() string {
        switch e.Reason {
        case NotAuthorizedToSign:
-               return "x509: certificate is not authorized to sign other other certificates"
+               return "x509: certificate is not authorized to sign other certificates"
        case Expired:
                return "x509: certificate has expired or is not yet valid"
        case CANotAuthorizedForThisName:
index 833e8bf4f514836cbd0d42bdb2594d839edb55f0..aec572760fe6a1f4f93404e8cad55cd572d66fa3 100644 (file)
@@ -31,7 +31,7 @@ var _ = log.Printf
 //   INSERT|<tablename>|col=val,col2=val2,col3=?
 //   SELECT|<tablename>|projectcol1,projectcol2|filtercol=?,filtercol2=?
 //
-// When opening a fakeDriver's database, it starts empty with no
+// When opening a fakeDriver's database, it starts empty with no
 // tables.  All tables and data are stored in memory only.
 type fakeDriver struct {
        mu        sync.Mutex
@@ -234,7 +234,7 @@ func checkSubsetTypes(args []driver.Value) error {
 
 func (c *fakeConn) Exec(query string, args []driver.Value) (driver.Result, error) {
        // This is an optional interface, but it's implemented here
-       // just to check that all the args of of the proper types.
+       // just to check that all the args are of the proper types.
        // ErrSkip is returned so the caller acts as if we didn't
        // implement this at all.
        err := checkSubsetTypes(args)
@@ -249,7 +249,7 @@ func errf(msg string, args ...interface{}) error {
 }
 
 // parts are table|selectCol1,selectCol2|whereCol=?,whereCol2=?
-// (note that where where columns must always contain ? marks,
+// (note that where columns must always contain ? marks,
 //  just a limitation for fakedb)
 func (c *fakeConn) prepareSelect(stmt *fakeStmt, parts []string) (driver.Stmt, error) {
        if len(parts) != 3 {
index 5eaae37b7decdf0b9c21197561f4a31e538e7e07..60b174fecd822cfeb7e8fe4b3cb7f40f313de271 100644 (file)
@@ -494,7 +494,7 @@ func (r *reader) readPackage(pkg *ast.Package, mode Mode) {
        r.funcs = make(methodSet)
 
        // sort package files before reading them so that the
-       // result result does not depend on map iteration order
+       // result does not depend on map iteration order
        i := 0
        for filename := range pkg.Files {
                r.filenames[i] = filename
index 454c791ec3123ca753e9cd5a05a9a72a744fe187..2ca76bf389fd332781cef026d7311c80e0ac3520 100644 (file)
@@ -60,7 +60,7 @@ func urlProcessor(norm bool, args ...interface{}) string {
                c := s[i]
                switch c {
                // Single quote and parens are sub-delims in RFC 3986, but we
-               // escape them so the output can be embedded in in single
+               // escape them so the output can be embedded in single
                // quoted attributes and unquoted CSS url(...) constructs.
                // Single quotes are reserved in URLs, but are only used in
                // the obsolete "mark" rule in an appendix in RFC 3986
index 83cc411343f2f6a98b41ce7072eee7d225a6f34e..09e941e3ec0ddbf17c1929e6ce74770fc1123ef9 100644 (file)
@@ -22,7 +22,7 @@ func isTokenChar(r rune) bool {
        return r > 0x20 && r < 0x7f && !isTSpecial(r)
 }
 
-// isToken returns true if s is a 'token' as as defined by RFC 1521
+// isToken returns true if s is a 'token' as defined by RFC 1521
 // and RFC 2045.
 func isToken(s string) bool {
        if s == "" {
index 9a8e1817014beb8e621017e0ae8ea6c538a47068..3db3ab095da2384cb972457f752699825ca1c232 100644 (file)
@@ -16,7 +16,7 @@ import (
        "syscall"
 )
 
-// Error records the name of a binary that failed to be be executed
+// Error records the name of a binary that failed to be executed
 // and the reason it failed.
 type Error struct {
        Name string
index 87e6b1c61e41c314b49d5c0ee6c3229ec55200f0..4b329e9cccfd35275094259e79f376c3d3ae3cd1 100644 (file)
@@ -441,7 +441,7 @@ func (re *Regexp) ReplaceAllLiteralString(src, repl string) string {
 }
 
 // ReplaceAllStringFunc returns a copy of src in which all matches of the
-// Regexp have been replaced by the return value of of function repl applied
+// Regexp have been replaced by the return value of function repl applied
 // to the matched substring.  The replacement returned by repl is substituted
 // directly, without using Expand.
 func (re *Regexp) ReplaceAllStringFunc(src string, repl func(string) string) string {
@@ -539,7 +539,7 @@ func (re *Regexp) ReplaceAllLiteral(src, repl []byte) []byte {
 }
 
 // ReplaceAllFunc returns a copy of src in which all matches of the
-// Regexp have been replaced by the return value of of function repl applied
+// Regexp have been replaced by the return value of function repl applied
 // to the matched byte slice.  The replacement returned by repl is substituted
 // directly, without using Expand.
 func (re *Regexp) ReplaceAllFunc(src []byte, repl func([]byte) []byte) []byte {
index 024969b42851fba341beada06abda092cde93289..b661281fba2dd274e267de86a1b808ae8a845458 100644 (file)
@@ -32,6 +32,6 @@ func Sizeof(v ArbitraryType) uintptr
 func Offsetof(v ArbitraryType) uintptr
 
 // Alignof returns the alignment of the value v.  It is the maximum value m such
-// that the address of a variable with the type of v will always always be zero mod m.
+// that the address of a variable with the type of v will always be zero mod m.
 // If v is of the form structValue.field, it returns the alignment of field f within struct object obj.
 func Alignof(v ArbitraryType) uintptr