]> Cypherpunks repositories - gostls13.git/commitdiff
all: various typos
authorRobert Griesemer <gri@golang.org>
Wed, 14 Mar 2012 00:29:07 +0000 (17:29 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 14 Mar 2012 00:29:07 +0000 (17:29 -0700)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5820045

src/pkg/index/suffixarray/qsufsort.go
src/pkg/math/big/nat.go
src/pkg/math/erf.go
src/pkg/net/interface_linux.go
src/pkg/net/interface_stub.go
src/pkg/net/interface_windows.go
src/pkg/syscall/syscall_linux.go

index c69be43c2ac8a76db759e381605e229d5bc18eb7..9c36a98f82d2679a410ec3bedeacb5f4b6ebe406 100644 (file)
@@ -11,7 +11,7 @@
 // Consecutive groups of suffixes in sa are labeled as sorted groups or
 // unsorted groups. For a given pass of the sorter, all suffixes are ordered
 // up to their first h characters, and sa is h-ordered. Suffixes in their
-// final positions and unambiguouly sorted in h-order are in a sorted group.
+// final positions and unambiguously sorted in h-order are in a sorted group.
 // Consecutive groups of suffixes with identical first h characters are an
 // unsorted group. In each pass of the algorithm, unsorted groups are sorted
 // according to the group number of their following suffix.
@@ -78,7 +78,7 @@ func sortedByFirstByte(data []byte) []int {
        for _, b := range data {
                count[b]++
        }
-       // make count[b] equal index of first occurence of b in sorted array
+       // make count[b] equal index of first occurrence of b in sorted array
        sum := 0
        for b := range count {
                count[b], sum = sum, count[b]+sum
index da1ac944c5c3d07d5b07135b64085070b7b80bbb..0bc6572b962a9bbd14436d293d74852a182afae8 100644 (file)
@@ -826,7 +826,7 @@ func (x nat) string(charset string) string {
 // iterative approach. This threshold is represented by leafSize. Benchmarking of leafSize in the 
 // range 2..64 shows that values of 8 and 16 work well, with a 4x speedup at medium lengths and 
 // ~30x for 20000 digits. Use nat_test.go's BenchmarkLeafSize tests to optimize leafSize for 
-// specfic hardware.
+// specific hardware.
 //
 func (q nat) convertWords(s []byte, charset string, b Word, ndigits int, bb Word, table []divisor) {
        // split larger blocks recursively
index 87c70c2512f616a869d911d4996b35650eb0369e..c6f32bdbe284087f1cc783d9dfd110706d72221b 100644 (file)
@@ -248,7 +248,7 @@ func Erf(x float64) float64 {
                R = rb0 + s*(rb1+s*(rb2+s*(rb3+s*(rb4+s*(rb5+s*rb6)))))
                S = 1 + s*(sb1+s*(sb2+s*(sb3+s*(sb4+s*(sb5+s*(sb6+s*sb7))))))
        }
-       z := Float64frombits(Float64bits(x) & 0xffffffff00000000) // pseudo-single (20-bit) precison x
+       z := Float64frombits(Float64bits(x) & 0xffffffff00000000) // pseudo-single (20-bit) precision x
        r := Exp(-z*z-0.5625) * Exp((z-x)*(z+x)+R/S)
        if sign {
                return r/x - 1
@@ -321,7 +321,7 @@ func Erfc(x float64) float64 {
                        R = rb0 + s*(rb1+s*(rb2+s*(rb3+s*(rb4+s*(rb5+s*rb6)))))
                        S = 1 + s*(sb1+s*(sb2+s*(sb3+s*(sb4+s*(sb5+s*(sb6+s*sb7))))))
                }
-               z := Float64frombits(Float64bits(x) & 0xffffffff00000000) // pseudo-single (20-bit) precison x
+               z := Float64frombits(Float64bits(x) & 0xffffffff00000000) // pseudo-single (20-bit) precision x
                r := Exp(-z*z-0.5625) * Exp((z-x)*(z+x)+R/S)
                if sign {
                        return 2 - r/x
index 8c9c304087471247292b2b91840bd34701472709..825b20227aeaa7e6b5d4a73f0c500ff5fcb294d8 100644 (file)
@@ -13,7 +13,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) {
        tab, err := syscall.NetlinkRIB(syscall.RTM_GETLINK, syscall.AF_UNSPEC)
index 4876b3af3530f17d40f7a0e52309cc02df858369..d4d7ce9c7f88e1d2f374cd72c7f31f1dbe632bf2 100644 (file)
@@ -9,7 +9,7 @@
 package net
 
 // 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) {
        return nil, nil
index d0c97532699bd411a7a65a3c522cda5ae937d087..4368b3306213b54c814cec6079e7373904eb7577 100644 (file)
@@ -56,7 +56,7 @@ func getInterfaceList() ([]syscall.InterfaceInfo, error) {
 }
 
 // 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) {
        ai, err := getAdapterList()
index 59e167ce55af56b203c7a6aa6b88c5bdc1fe7cba..89fb6819215e6d70d91cab623af44dbb9d407934 100644 (file)
@@ -627,7 +627,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
 
        // Remainder.
        for len(out) > 0 {
-               // We use an internal buffer to gaurantee alignment.
+               // We use an internal buffer to guarantee alignment.
                // It's not documented if this is necessary, but we're paranoid.
                err = ptrace(req, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
                if err != nil {