]> Cypherpunks repositories - gostls13.git/commitdiff
all packages: fix various typos
authorRobert Griesemer <gri@golang.org>
Thu, 2 Feb 2012 00:19:36 +0000 (16:19 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 2 Feb 2012 00:19:36 +0000 (16:19 -0800)
Detected semi-automatically. There are probably more.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5620046

12 files changed:
src/cmd/api/goapi.go
src/cmd/fix/fix.go
src/cmd/fix/reflect.go
src/cmd/yacc/yacc.go
src/pkg/crypto/elliptic/p224.go
src/pkg/encoding/gob/doc.go
src/pkg/encoding/xml/typeinfo.go
src/pkg/exp/ebnflint/doc.go
src/pkg/exp/norm/forminfo.go
src/pkg/go/doc/comment.go
src/pkg/html/template/js.go
src/pkg/net/interface_bsd.go

index d05f90df3be03861e65fcda26a4f82d305633573..c8fc9cfae7f4caf3b4f3b8e12c29f01d634e91e4 100644 (file)
@@ -119,7 +119,7 @@ type Walker struct {
        lastConstType   string
        curPackageName  string
        curPackage      *ast.Package
-       prevConstType   map[string]string // identifer -> "ideal-int"
+       prevConstType   map[string]string // identifier -> "ideal-int"
        packageState    map[string]loadState
        interfaces      map[pkgSymbol]*ast.InterfaceType
        selectorFullPkg map[string]string // "http" => "net/http", updated by imports
index d1a7bc8749a56f1b0f2f66da000e89b650b62060..2c1be6942a6d310e1c515d00da59a8aab11f5f9c 100644 (file)
@@ -704,7 +704,7 @@ func rewriteImport(f *ast.File, oldPath, newPath string) (rewrote bool) {
        for _, imp := range f.Imports {
                if importPath(imp) == oldPath {
                        rewrote = true
-                       // record old End, beacuse the default is to compute
+                       // record old End, because the default is to compute
                        // it using the length of imp.Path.Value.
                        imp.EndPos = imp.End()
                        imp.Path.Value = strconv.Quote(newPath)
index 187d6c0a2d6471fe8061b4433ee0217a4e5393b5..60bee166de7ad601c765c8e1a6d48daddf838c5a 100644 (file)
@@ -49,7 +49,7 @@ http://codereview.appspot.com/4433066
 //
 // Not all type checks result in a single Kind check.  The rewrite of the type check for
 // reflect.ArrayOrSliceType checks x.Kind() against reflect.Array and reflect.Slice.
-// The rewrite for *reflect.IntType checks againt Int, Int8, Int16, Int32, Int64.
+// The rewrite for *reflect.IntType checks against Int, Int8, Int16, Int32, Int64.
 // The rewrite for *reflect.UintType adds Uintptr.
 //
 // A type switch turns into an assignment and a switch on Kind:
index c91a72123ebd4d9d6779257f06d10514daac3ec2..e94228152190a716d3f35487294eff599b4d5192 100644 (file)
@@ -545,7 +545,7 @@ outer:
        // put into prdptr array in the format
        // target
        // followed by id's of terminals and non-terminals
-       // followd by -nprod
+       // followed by -nprod
 
        for t != MARK && t != ENDFILE {
                mem := 0
index 87a6d556cea0c103ff5b91aeb1cebf964ff453e1..17571c252884cc49286061e284320a381a922046 100644 (file)
@@ -225,7 +225,7 @@ func p224ReduceLarge(out *p224FieldElement, in *p224LargeFieldElement) {
                in[i] += p224ZeroModP63[i]
        }
 
-       // Elimintate the coefficients at 2**224 and greater.
+       // Eliminate the coefficients at 2**224 and greater.
        for i := 14; i >= 8; i-- {
                in[i-8] -= in[i]
                in[i-5] += (in[i] & 0xffff) << 12
@@ -288,7 +288,7 @@ func p224Reduce(a *p224FieldElement) {
        a[0] += mask & (1 << 28)
 }
 
-// p224Invert calcuates *out = in**-1 by computing in**(2**224 - 2**96 - 1),
+// p224Invert calculates *out = in**-1 by computing in**(2**224 - 2**96 - 1),
 // i.e. Fermat's little theorem.
 func p224Invert(out, in *p224FieldElement) {
        var f1, f2, f3, f4 p224FieldElement
index 05ebef195932775e2e99962ef38cc09d05fe4900..fce6879f56deea564861e44cf0dd8e655803ec55 100644 (file)
@@ -70,7 +70,7 @@ operation will fail.
 Structs, arrays and slices are also supported.  Strings and arrays of bytes are
 supported with a special, efficient representation (see below).  When a slice is
 decoded, if the existing slice has capacity the slice will be extended in place;
-if not, a new array is allocated.  Regardless, the length of the resuling slice
+if not, a new array is allocated.  Regardless, the length of the resulting slice
 reports the number of elements decoded.
 
 Functions and channels cannot be sent in a gob.  Attempting
index 2bf2c6b3032e98d580e7fabc62c6b6dc3f9db16d..5475f290d18dca4d439835523954bd3662a63215 100644 (file)
@@ -193,7 +193,7 @@ func structFieldInfo(typ reflect.Type, f *reflect.StructField) (*fieldInfo, erro
 
        // If the field type has an XMLName field, the names must match
        // so that the behavior of both marshalling and unmarshalling
-       // is straighforward and unambiguous.
+       // is straightforward and unambiguous.
        if finfo.flags&fElement != 0 {
                ftyp := f.Type
                xmlname := lookupXMLName(ftyp)
index f35976eea73012d27788d20e5bf837dab342814f..408227f71e1a04431cf77d58793be6cb7c1ccea2 100644 (file)
@@ -4,7 +4,7 @@
 
 /*
 
-Ebnflint verifies that EBNF productions are consistent and gramatically correct.
+Ebnflint verifies that EBNF productions are consistent and grammatically correct.
 It reads them from an HTML document such as the Go specification.
 
 Grammar productions are grouped in boxes demarcated by the HTML elements
index d06a00602f84fcbf6ddcf52baec96a9d07764da3..b3b387b9b62c52a213750c92afb49b9055a71d7d 100644 (file)
@@ -111,7 +111,7 @@ func (r runeInfo) isInert() bool {
 
 // Wrappers for tables.go
 
-// The 16-bit value of the decompostion tries is an index into a byte
+// The 16-bit value of the decomposition tries is an index into a byte
 // array of UTF-8 decomposition sequences. The first byte is the number
 // of bytes in the decomposition (excluding this length byte). The actual
 // sequence starts at the offset+1.
index d73b1315954bc7d5820b72d6cf368eb3bb9c0736..e50cdd86e69a919d129c27d91fbc0058a1fa87ae 100644 (file)
@@ -336,7 +336,7 @@ func blocks(text string) []block {
 
                if lastWasBlank && !lastWasHeading && i+2 < len(lines) &&
                        isBlank(lines[i+1]) && !isBlank(lines[i+2]) && indentLen(lines[i+2]) == 0 {
-                       // current line is non-blank, sourounded by blank lines
+                       // current line is non-blank, surrounded by blank lines
                        // and the next non-blank line is not indented: this
                        // might be a heading.
                        if head := heading(line); head != "" {
index 0e632df42201e49661f98d0671069e2b4bcb155e..a895a50aa9025da8b72482ad9045d84fb5a52e67 100644 (file)
@@ -154,7 +154,7 @@ func jsValEscaper(args ...interface{}) string {
                a = fmt.Sprint(args...)
        }
        // TODO: detect cycles before calling Marshal which loops infinitely on
-       // cyclic data. This may be an unnacceptable DoS risk.
+       // cyclic data. This may be an unacceptable DoS risk.
 
        b, err := json.Marshal(a)
        if err != nil {
index 907f80a80f3118522bf0cc16a0dd1113f31919c1..62cd62b5ea411d9a0d5a36b2661b8175c96e1ad1 100644 (file)
@@ -15,7 +15,7 @@ import (
 )
 
 // If the ifindex is zero, interfaceTable returns mappings of all
-// network interfaces.  Otheriwse it returns a mapping of a specific
+// network interfaces.  Otherwise it returns a mapping of a specific
 // interface.
 func interfaceTable(ifindex int) ([]Interface, error) {
        var ift []Interface