]> Cypherpunks repositories - gostls13.git/commitdiff
all: fixed various typos
authorRobert Griesemer <gri@golang.org>
Thu, 1 Mar 2012 22:56:05 +0000 (14:56 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 1 Mar 2012 22:56:05 +0000 (14:56 -0800)
(Semi-automatically detected.)

R=golang-dev, remyoudompheng, r
CC=golang-dev
https://golang.org/cl/5715052

src/pkg/crypto/x509/x509.go
src/pkg/exp/html/node.go
src/pkg/exp/norm/forminfo.go
src/pkg/exp/proxy/per_host.go
src/pkg/go/ast/print.go
src/pkg/net/http/httputil/persist.go
src/pkg/net/http/transfer.go
src/pkg/net/lookup_plan9.go
src/pkg/os/exec.go
src/pkg/strconv/extfloat.go
src/pkg/time/time.go

index 3116525d33d270bde4c822aa174f663b34362da7..f5da86b54a021c0d560693b001aca6642ad4d2eb 100644 (file)
@@ -153,7 +153,7 @@ const (
 //
 // md2WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 2 }
 //
-// md5WithRSAEncryption OBJECT IDENTIFER ::= { pkcs-1 4 }
+// md5WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 4 }
 //
 // sha-1WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 5 }
 // 
@@ -172,9 +172,9 @@ const (
 //
 // RFC 5758 3.1 DSA Signature Algorithms
 //
-// dsaWithSha356 OBJECT IDENTIFER ::= {
+// dsaWithSha256 OBJECT IDENTIFIER ::= {
 //    joint-iso-ccitt(2) country(16) us(840) organization(1) gov(101)
-//    algorithms(4) id-dsa-with-sha2(3) 2}
+//    csor(3) algorithms(4) id-dsa-with-sha2(3) 2}
 //
 var (
        oidSignatureMD2WithRSA    = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 1, 2}
index 83f17308b18a10de4f0162bdd7621a87a57a2eb1..c105a4e709aeae2afd07035d795daefb1decf342 100644 (file)
@@ -110,7 +110,7 @@ func (s *nodeStack) top() *Node {
        return nil
 }
 
-// index returns the index of the top-most occurence of n in the stack, or -1
+// index returns the index of the top-most occurrence of n in the stack, or -1
 // if n is not present.
 func (s *nodeStack) index(n *Node) int {
        for i := len(*s) - 1; i >= 0; i-- {
index fd7b3956233278e6747219776c8302a02aa206f3..c443b78d82554e08a6e162c38b02137886bad3b9 100644 (file)
@@ -18,17 +18,17 @@ package norm
 // has the form:
 //    <header> <decomp_byte>* [<tccc> [<lccc>]]
 // The header contains the number of bytes in the decomposition (excluding this
-// length byte). The two most significant bits of this lenght byte correspond
+// length byte). The two most significant bits of this length byte correspond
 // to bit 2 and 3 of qcIfo (see below).  The byte sequence itself starts at v+1.
 // The byte sequence is followed by a trailing and leading CCC if the values
 // for these are not zero.  The value of v determines which ccc are appended
 // to the sequences.  For v < firstCCC, there are none, for v >= firstCCC,
-// the seqence is followed by a trailing ccc, and for v >= firstLeadingCC
+// the sequence is followed by a trailing ccc, and for v >= firstLeadingCC
 // there is an additional leading ccc.
 
 const (
        qcInfoMask      = 0xF  // to clear all but the relevant bits in a qcInfo
-       headerLenMask   = 0x3F // extract the lenght value from the header byte
+       headerLenMask   = 0x3F // extract the length value from the header byte
        headerFlagsMask = 0xC0 // extract the qcInfo bits from the header byte
 )
 
index 397ef57cd92a010700c1b7cd884901ea1503a71c..0c627e9ab54fa1bc891f0882dabfcba49b0f5e8f 100644 (file)
@@ -75,7 +75,7 @@ func (p *PerHost) dialerForRequest(host string) Dialer {
 }
 
 // AddFromString parses a string that contains comma-separated values
-// specifing hosts that should use the bypass proxy. Each value is either an
+// specifying hosts that should use the bypass proxy. Each value is either an
 // IP address, a CIDR range, a zone (*.example.com) or a hostname
 // (localhost). A best effort is made to parse the string and errors are
 // ignored.
index f6c63c0d8895611b1713ca1c306682ea635dfde1..02cf9e022343765edad62d4608e486715320c3b9 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// This file contains printing suppport for ASTs.
+// This file contains printing support for ASTs.
 
 package ast
 
index 32f4662cc0e7f18f2b1a0301a8e4956a05d78bfa..507938acac71cefe2adce14d011261e597e60e9c 100644 (file)
@@ -383,7 +383,7 @@ func (cc *ClientConn) Read(req *http.Request) (resp *http.Response, err error) {
        // Make sure body is fully consumed, even if user does not call body.Close
        if lastbody != nil {
                // body.Close is assumed to be idempotent and multiple calls to
-               // it should return the error that its first invokation
+               // it should return the error that its first invocation
                // returned.
                err = lastbody.Close()
                if err != nil {
index ef9564af9c58b71a34d0f8bdddc0109f7a6f3dc3..3c8fe7f5b510110e49d6e07ebccbdbffb9ddbb44 100644 (file)
@@ -383,7 +383,7 @@ func fixTransferEncoding(requestMethod string, header Header) ([]string, error)
        // chunked encoding must always come first.
        for _, encoding := range encodings {
                encoding = strings.ToLower(strings.TrimSpace(encoding))
-               // "identity" encoding is not recored
+               // "identity" encoding is not recorded
                if encoding == "identity" {
                        break
                }
index b08a9fb98e042a50a0af31a1f714eec496bad0fa..2c698304b21d790e79f25bb337de30fa533c6c05 100644 (file)
@@ -76,7 +76,7 @@ func lookupProtocol(name string) (proto int, err error) {
 }
 
 func lookupHost(host string) (addrs []string, err error) {
-       // Use /net/cs insead of /net/dns because cs knows about
+       // Use /net/cs instead of /net/dns because cs knows about
        // host names in local network (e.g. from /lib/ndb/local)
        lines, err := queryCS("tcp", host, "1")
        if err != nil {
index 37a0051c5dca5ae579bd4b5499e1c5bf1c408784..531b87ca55671a179e20a43f04af36899316fbda 100644 (file)
@@ -13,7 +13,7 @@ import (
 type Process struct {
        Pid    int
        handle uintptr
-       done   bool // process has been successfuly waited on
+       done   bool // process has been successfully waited on
 }
 
 func newProcess(pid int, handle uintptr) *Process {
index 64ab84f45549914b8e73df1a1b21beee88ace0df..aa5e5607ca0b94c795ddeaff0e21f7c9faa76160 100644 (file)
@@ -477,7 +477,7 @@ func (f *extFloat) ShortestDecimal(d *decimal, lower, upper *extFloat) bool {
 // all data is known with a error estimate of ulpBinary*ε.
 func adjustLastDigit(d *decimal, currentDiff, targetDiff, maxDiff, ulpDecimal, ulpBinary uint64) bool {
        if ulpDecimal < 2*ulpBinary {
-               // Appromixation is too wide.
+               // Approximation is too wide.
                return false
        }
        for currentDiff+ulpDecimal/2+ulpBinary < targetDiff {
index 51d332ba0aa75f921c592b8ee14ad5e46836f92e..f7ded24d2929d42599f2f30170c7c78bad93f875 100644 (file)
@@ -152,7 +152,7 @@ func (d Weekday) String() string { return days[d] }
 // rely heavily on division and modulus by positive constants.  For
 // calendrical calculations we want these divisions to round down, even
 // for negative values, so that the remainder is always positive, but
-// Go's division (like most hardware divison instructions) rounds to
+// Go's division (like most hardware division instructions) rounds to
 // zero.  We can still do those computations and then adjust the result
 // for a negative numerator, but it's annoying to write the adjustment
 // over and over.  Instead, we can change to a different epoch so long