]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix a few spelling errors in source comments
authorMartin Olsson <martin@minimum.se>
Fri, 27 Dec 2013 16:59:02 +0000 (08:59 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 27 Dec 2013 16:59:02 +0000 (08:59 -0800)
R=golang-codereviews, dave, iant
CC=golang-codereviews
https://golang.org/cl/45750044

src/cmd/gc/fmt.c
src/cmd/gc/go.h
src/cmd/gc/subr.c
src/cmd/nm/doc.go
src/liblink/asm5.c
src/pkg/database/sql/sql.go
src/pkg/sort/sort.go
test/divmod.go
test/fixedbugs/bug476.go
test/run.go

index 3f6ac457d7a0ac97a6352895ce582ffa6bcfc367..4217321831b9e58092029687a7fa783e0ff07fcb 100644 (file)
@@ -17,7 +17,7 @@
 //             Flags: "%#O": print go syntax. (automatic unless fmtmode == FDbg)
 //
 //     %J Node*        Node details
-//             Flags: "%hJ" supresses things not relevant until walk.
+//             Flags: "%hJ" suppresses things not relevant until walk.
 //
 //     %V Val*         Constant values
 //
index 3840c9adf97de849546206db5dc55c9de23c6676..2e03898cdae086cd54df14763fbb0d75cf845c4e 100644 (file)
@@ -503,7 +503,7 @@ enum
        OKEY,   // The x:3 in t{x:3, y:4}, the 1:2 in a[1:2], the 2:20 in [3]int{2:20}, etc.
        OPARAM, // The on-stack copy of a parameter or return value that escapes.
        OLEN,   // len
-       OMAKE,  // make, typechecking may convert to a more specfic OMAKEXXX.
+       OMAKE,  // make, typechecking may convert to a more specific OMAKEXXX.
        OMAKECHAN,      // make(chan int)
        OMAKEMAP,       // make(map[string]int)
        OMAKESLICE,     // make([]int, 0)
@@ -525,7 +525,7 @@ enum
        OPRINTN,        // println
        OPAREN, // (x)
        OSEND,  // c <- x
-       OSLICE, // v[1:2], typechecking may convert to a more specfic OSLICEXXX.
+       OSLICE, // v[1:2], typechecking may convert to a more specific OSLICEXXX.
        OSLICEARR,      // a[1:2]
        OSLICESTR,      // s[1:2]
        OSLICE3,        // v[1:2:3], typechecking may convert to OSLICE3ARR.
index cca9705b27e57b674805042f45bc0dc009d8dd2a..f8e321c9627545fc4b75a51c8353994844c19de4 100644 (file)
@@ -1234,7 +1234,7 @@ assignop(Type *src, Type *dst, char **why)
                if(implements(src, dst, &missing, &have, &ptr))
                        return OCONVIFACE;
 
-               // we'll have complained about this method anyway, supress spurious messages.
+               // we'll have complained about this method anyway, suppress spurious messages.
                if(have && have->sym == missing->sym && (have->type->broke || missing->type->broke))
                        return OCONVIFACE;
 
index 12b079d25f21fa59eb242649b0b1451daeabefea..f40073f7a282fb9e694beb90cad1f92b70ed4a5a 100644 (file)
@@ -28,7 +28,7 @@
 //
 //     -n
 //             an alias for -sort address (numeric),
-//             for compatiblity with other nm commands
+//             for compatibility with other nm commands
 //     -size
 //             print symbol size in decimal between address and type
 //     -sort {address,name,none}
index 6c744a815aef1c0291e4094c18d8e6dfe8c4d9ee..923c059222e5768b0b8400f736921b921996c617 100644 (file)
@@ -1991,7 +1991,7 @@ if(0 /*debug['G']*/) print("%ux: %s: arm %d\n", (uint32)(p->pc), p->from.sym->na
                // This is supposed to be something that stops execution.
                // It's not supposed to be reached, ever, but if it is, we'd
                // like to be able to tell how we got there.  Assemble as
-               // 0xf7fabcfd which is guranteed to raise undefined instruction
+               // 0xf7fabcfd which is guaranteed to raise undefined instruction
                // exception.
                o1 = 0xf7fabcfd;
                break;
index a0bd05162813d41716161744162e44a616b46735..4f86d24b2e5e819b149e399b2e8d16f14516091f 100644 (file)
@@ -569,7 +569,7 @@ func (db *DB) maybeOpenNewConnections() {
        }
 }
 
-// Runs in a seperate goroutine, opens new connections when requested.
+// Runs in a separate goroutine, opens new connections when requested.
 func (db *DB) connectionOpener() {
        for _ = range db.openerCh {
                db.openNewConnection()
index f06eb3827ab6e8ff67fd38b7dd0175d00ff91f59..242c5fffa217e2af515283f5eec189e192cde647 100644 (file)
@@ -289,7 +289,7 @@ func StringsAreSorted(a []string) bool { return IsSorted(StringSlice(a)) }
 // only logarithmic additional stack space.  They perform well if compared
 // experimentaly to other stable in-place sorting algorithms.
 //
-// Remarks on other algoritms evaluated:
+// Remarks on other algorithms evaluated:
 //  - GCC's 4.6.3 stable_sort with merge_without_buffer from libstdc++:
 //    Not faster.
 //  - GCC's __rotate for block rotations: Not faster.
@@ -349,7 +349,7 @@ func Stable(data Interface) {
 // The algorithm needs O((M+N)*log(M)) calls to data.Swap.
 //
 // The paper gives O((M+N)*log(M)) as the number of assignments assuming a
-// rotation algorithm wich uses O(M+N+gcd(M+N)) assignments. The argumentation
+// rotation algorithm which uses O(M+N+gcd(M+N)) assignments. The argumentation
 // in the paper carries through for Swap operations, especially as the block
 // swapping rotate uses only O(M+N) Swaps.
 func symMerge(data Interface, a, m, b int) {
index 49fed0222c6f8b8f01ac7f6a48dc760fb7e25108..ad632bc83b823aab21e5e039bb036be60cf8737a 100644 (file)
@@ -6,7 +6,7 @@
 
 // Test division of variables. Generate many test cases,
 // compute correct answer using shift and subtract,
-// and then compare against results from divison and
+// and then compare against results from division and
 // modulus operators.
 //
 // Primarily useful for testing software div/mod.
index 4ea2174048402a20004a25889198fd9e2526850d..563fd9156e720cc804cf0d154c167a9ada679599 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Logical operation on named boolean type returns the same type,
-// supporting an implicit convertion to an interface type.  This used
+// supporting an implicit conversion to an interface type.  This used
 // to crash gccgo.
 
 package p
index 5c94de6400f1c9702b9aa229857a478f67d8a270..e5190e4e79bee36f20c31f9c92e25f25ae68cc92 100644 (file)
@@ -886,7 +886,7 @@ func checkShouldTest() {
        // Build tags separated by a space are OR-ed together.
        assertNot(shouldTest("// +build arm 386", "linux", "amd64"))
 
-       // Build tags seperated by a comma are AND-ed together.
+       // Build tags separated by a comma are AND-ed together.
        assertNot(shouldTest("// +build !windows,!plan9", "windows", "amd64"))
        assertNot(shouldTest("// +build !windows,!plan9", "plan9", "386"))