]> Cypherpunks repositories - gostls13.git/commitdiff
all: use cannot instead of can not
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 27 Jan 2016 20:49:13 +0000 (12:49 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 21 Feb 2016 15:35:50 +0000 (15:35 +0000)
You can not use cannot, but you cannot spell cannot can not.

Change-Id: I2f0971481a460804de96fd8c9e46a9cc62a3fc5b
Reviewed-on: https://go-review.googlesource.com/19772
Reviewed-by: Rob Pike <r@golang.org>
29 files changed:
src/archive/zip/writer.go
src/cmd/cgo/doc.go
src/cmd/cgo/gcc.go
src/cmd/compile/internal/gc/lex.go
src/cmd/go/go_test.go
src/database/sql/sql.go
src/log/syslog/syslog.go
src/net/http/server.go
src/net/http/transport.go
src/os/signal/doc.go
src/runtime/cgocall.go
src/runtime/mbarrier.go
src/runtime/mfixalloc.go
src/runtime/mstats.go
src/runtime/norace_linux_test.go
src/runtime/norace_test.go
src/runtime/os1_darwin.go
src/runtime/os1_dragonfly.go
src/runtime/os1_freebsd.go
src/runtime/os1_linux.go
src/runtime/os1_nacl.go
src/runtime/os1_netbsd.go
src/runtime/os1_plan9.go
src/runtime/os1_windows.go
src/runtime/os3_solaris.go
src/runtime/sys_darwin_arm.s
src/runtime/sys_darwin_arm64.s
src/runtime/vdso_linux_amd64.go
src/sync/pool.go

index 5ce66e6be5eb1d2782cb0564c080a6ac72102f21..3a9292e380705573fdd0249602cb5ab83177b42e 100644 (file)
@@ -52,7 +52,7 @@ func (w *Writer) Flush() error {
 }
 
 // Close finishes writing the zip file by writing the central directory.
-// It does not (and can not) close the underlying writer.
+// It does not (and cannot) close the underlying writer.
 func (w *Writer) Close() error {
        if w.last != nil && !w.last.closed {
                if err := w.last.close(); err != nil {
index 8b4e2bfd58ee26ff6b600980c56257e768c97a56..90c2584c7fb0d7db09ada8fe238f10ad82662308 100644 (file)
@@ -133,7 +133,7 @@ C's union types are represented as a Go byte array with the same length.
 
 Go structs cannot embed fields with C types.
 
-Go code can not refer to zero-sized fields that occur at the end of
+Go code cannot refer to zero-sized fields that occur at the end of
 non-empty C structs.  To get the address of such a field (which is the
 only operation you can do with a zero-sized field) you must take the
 address of the struct and add the size of the struct.
index fb5049c1a1de596916edc9e0c554944ef69aea77..5bfdef785c10556dfb12dc88a1b3786b6628a63a 100644 (file)
@@ -432,7 +432,7 @@ func (p *Package) loadDWARF(f *File, names []*Name) {
                        fmt.Fprintf(&b, "\t0,\n")
                }
        }
-       // for the last entry, we can not use 0, otherwise
+       // for the last entry, we cannot use 0, otherwise
        // in case all __cgodebug_data is zero initialized,
        // LLVM-based gcc will place the it in the __DATA.__common
        // zero-filled section (our debug/macho doesn't support
@@ -2025,7 +2025,7 @@ func (c *typeConv) Struct(dt *dwarf.StructType, pos token.Pos) (expr *ast.Struct
        // We can't permit that, because then the size of the Go
        // struct will not be the same as the size of the C struct.
        // Our only option in such a case is to remove the field,
-       // which means that it can not be referenced from Go.
+       // which means that it cannot be referenced from Go.
        for off > 0 && sizes[len(sizes)-1] == 0 {
                n := len(sizes)
                fld = fld[0 : n-1]
index 54c69c54491fa66443bfb4ad3c800f77b12bf678..0f8b20cea03fd4c3a6d7b5760c2cfbc1ff0922c9 100644 (file)
@@ -255,7 +255,7 @@ func Main() {
                msanpkg.Name = "msan"
        }
        if flag_race != 0 && flag_msan != 0 {
-               log.Fatal("can not use both -race and -msan")
+               log.Fatal("cannot use both -race and -msan")
        } else if flag_race != 0 || flag_msan != 0 {
                instrumenting = true
        }
index ae426088ea1cc1ae5e1d177cb907723fb664cde4..51931769d5a51aeb9947e643ac8f6650b5d0b93b 100644 (file)
@@ -2337,7 +2337,7 @@ func TestGoGetHTTPS404(t *testing.T) {
        tg.run("get", "bazil.org/fuse/fs/fstestutil")
 }
 
-// Test that you can not import a main package.
+// Test that you cannot import a main package.
 func TestIssue4210(t *testing.T) {
        tg := testgo(t)
        defer tg.cleanup()
index d8e7cb77af396e0d735ee766410adb91591b887c..28c36160b52803660a2b4c9a16285da1ed5e88a7 100644 (file)
@@ -199,7 +199,7 @@ type Scanner interface {
        //    time.Time
        //    nil - for NULL values
        //
-       // An error should be returned if the value can not be stored
+       // An error should be returned if the value cannot be stored
        // without loss of information.
        Scan(src interface{}) error
 }
index 4bf447626f22001532e132569e7779cc4b034164..0e342242eccb62b1f9a1c7927309ad0b38788255 100644 (file)
@@ -85,7 +85,7 @@ type Writer struct {
 }
 
 // This interface and the separate syslog_unix.go file exist for
-// Solaris support as implemented by gccgo.  On Solaris you can not
+// Solaris support as implemented by gccgo.  On Solaris you cannot
 // simply open a TCP connection to the syslog daemon.  The gccgo
 // sources have a syslog_solaris.go file that implements unixSyslog to
 // return a type that satisfies this interface and simply calls the C
index 5e3b6084ae3879be3b14ca5d3dfaddce652256b4..1b5cda3159a2623989c870e91ddfd9dfb81a74c0 100644 (file)
@@ -2032,7 +2032,7 @@ const (
        // For HTTP/2, StateActive fires on the transition from zero
        // to one active request, and only transitions away once all
        // active requests are complete. That means that ConnState
-       // can not be used to do per-request work; ConnState only notes
+       // cannot be used to do per-request work; ConnState only notes
        // the overall state of the connection.
        StateActive
 
index 1e3ea11d9c5bca462b65f215f2402f7951830bef..feedb3420d8dade4ea1c707ddc56f6ca29e98799 100644 (file)
@@ -418,7 +418,7 @@ func (t *Transport) CloseIdleConnections() {
 // CancelRequest cancels an in-flight request by closing its connection.
 // CancelRequest should only be called after RoundTrip has returned.
 //
-// Deprecated: Use Request.Cancel instead. CancelRequest can not cancel
+// Deprecated: Use Request.Cancel instead. CancelRequest cannot cancel
 // HTTP/2 requests.
 func (t *Transport) CancelRequest(req *Request) {
        t.reqMu.Lock()
index 80e66cffe530de0954e73f6ab0314d19d481cc8f..9ee547b15db420562d2fd25178d8dbb08bd9e058 100644 (file)
@@ -11,7 +11,7 @@ package on Windows and Plan 9, see below.
 Types of signals
 
 The signals SIGKILL and SIGSTOP may not be caught by a program, and
-therefore can not be affected by this package.
+therefore cannot be affected by this package.
 
 Synchronous signals are signals triggered by errors in program
 execution: SIGBUS, SIGFPE, and SIGSEGV. These are only considered
index fef8add46feb1b3c60b4de3da94db33006d38188..f632f7ab5aff656c297687657da47063944d4737 100644 (file)
@@ -340,7 +340,7 @@ var racecgosync uint64 // represents possible synchronization in C code
 // When and if we implement a moving garbage collector,
 // cgoCheckPointer will pin the pointer for the duration of the cgo
 // call.  (This is necessary but not sufficient; the cgo program will
-// also have to change to pin Go pointers that can not point to Go
+// also have to change to pin Go pointers that cannot point to Go
 // pointers.)
 
 // cgoCheckPointer checks if the argument contains a Go pointer that
index 45086c43cdde1685552a529b5ef9df3d3a5063b7..1204e8143ef570e1e9b020bacf13a76bcb8f5f9b 100644 (file)
@@ -100,7 +100,7 @@ func gcmarkwb_m(slot *uintptr, ptr uintptr) {
 // related operations. In particular there are times when the GC assumes
 // that the world is stopped but scheduler related code is still being
 // executed, dealing with syscalls, dealing with putting gs on runnable
-// queues and so forth. This code can not execute write barriers because
+// queues and so forth. This code cannot execute write barriers because
 // the GC might drop them on the floor. Stopping the world involves removing
 // the p associated with an m. We use the fact that m.p == nil to indicate
 // that we are in one these critical section and throw if the write is of
index 8653a6a99fce03076f43f7002fd02cbdc92b69c4..569a304cf459524cb4ddcbfa77e12e9d82a5482f 100644 (file)
@@ -30,8 +30,8 @@ type fixalloc struct {
 }
 
 // A generic linked list of blocks.  (Typically the block is bigger than sizeof(MLink).)
-// Since assignments to mlink.next will result in a write barrier being preformed
-// this can not be used by some of the internal GC structures. For example when
+// Since assignments to mlink.next will result in a write barrier being performed
+// this cannot be used by some of the internal GC structures. For example when
 // the sweeper is placing an unmarked object on the free list it does not want the
 // write barrier to be called since that could result in the object being reachable.
 type mlink struct {
index 368687d0064c9cb1a07cc4f5ec90ffccd8ebfb7d..8ae636077b9efb5e44a42dd1328c4523edc392b2 100644 (file)
@@ -165,7 +165,7 @@ type MemStats struct {
 
 // Size of the trailing by_size array differs between Go and C,
 // and all data after by_size is local to runtime, not exported.
-// NumSizeClasses was changed, but we can not change Go struct because of backward compatibility.
+// NumSizeClasses was changed, but we cannot change Go struct because of backward compatibility.
 // sizeof_C_MStats is what C thinks about size of Go struct.
 var sizeof_C_MStats = unsafe.Offsetof(memstats.by_size) + 61*unsafe.Sizeof(memstats.by_size[0])
 
@@ -192,7 +192,7 @@ func readmemstats_m(stats *MemStats) {
        updatememstats(nil)
 
        // Size of the trailing by_size array differs between Go and C,
-       // NumSizeClasses was changed, but we can not change Go struct because of backward compatibility.
+       // NumSizeClasses was changed, but we cannot change Go struct because of backward compatibility.
        memmove(unsafe.Pointer(stats), unsafe.Pointer(&memstats), sizeof_C_MStats)
 
        // Stack numbers are part of the heap numbers, separate those out for user consumption
index bbf9d0b41391401660dfb97d5fa34156cb57fe07..049801d3fc55bcab67f908f3ab2904ffe2bd599f 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.
 
-// The file contains tests that can not run under race detector for some reason.
+// The file contains tests that cannot run under race detector for some reason.
 // +build !race
 
 package runtime_test
index 3681bf190d24367594fef0fc2bbbb4e327b8950c..e9b39b2f4553fa0d3dc1dde971654d0996958e54 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.
 
-// The file contains tests that can not run under race detector for some reason.
+// The file contains tests that cannot run under race detector for some reason.
 // +build !race
 
 package runtime_test
index 5c00407b2fcbb774a1cfd8df4e1ec802a03dcc95..19bb0f16e079fddbbd9b1b30e01d6c88206dacf3 100644 (file)
@@ -157,7 +157,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        // Initialize signal handling.
        _g_ := getg()
index bf3e1ccb839b23383a6b745a1ad563a4ce08b667..7e4f84e6a3c9b7ca3d0569c64ced9a04a1a7f8dc 100644 (file)
@@ -133,7 +133,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        _g_ := getg()
 
index 79d995476e88cbd27121ade041108db45276fbd0..f00fdf4389a3f404d84a84ad48f154cdcae67c94 100644 (file)
@@ -136,7 +136,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        _g_ := getg()
 
index b38cfc14f91a2a88f99d295e398f0dd0fa9781fd..2d53b934f56c77493acf9f32b516bc254988d874 100644 (file)
@@ -225,7 +225,7 @@ func sigblock() {
 func gettid() uint32
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        // Initialize signal handling.
        _g_ := getg()
index dab205de6a3d3a49c0d754ccc9325a8602c90772..5526d906d812266bbc1795ef41e79960bc8035f3 100644 (file)
@@ -30,7 +30,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        _g_ := getg()
 
index eab8eb87024e6a47911043981e0c45c148260faa..e32df9585c664f38802484bffc6e2147f0560004 100644 (file)
@@ -167,7 +167,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        _g_ := getg()
        _g_.m.procid = uint64(lwp_self())
index 7506d591df4b8c471026764d96b0281ea9f72502..99110779110f8441cc6711f5ff50678e1ed0df2c 100644 (file)
@@ -33,7 +33,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        // Mask all SSE floating-point exceptions
        // when running on the 64-bit kernel.
index a28e11e088db114102655ce0562acb5a8ac3d284..8d46bca36d5b2a3ee947f9afa5fbc946640df805 100644 (file)
@@ -399,7 +399,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        var thandle uintptr
        stdcall7(_DuplicateHandle, currentProcess, currentThread, currentProcess, uintptr(unsafe.Pointer(&thandle)), 0, 0, _DUPLICATE_SAME_ACCESS)
index 7ebb35c8e9c462e741dd7c0f93904f5c5c9dc26e..fdc817d3f7916dbdfdd85b128ed9d1887a8f1c3e 100644 (file)
@@ -208,7 +208,7 @@ func sigblock() {
 }
 
 // Called to initialize a new m (including the bootstrap m).
-// Called on the new thread, can not allocate memory.
+// Called on the new thread, cannot allocate memory.
 func minit() {
        _g_ := getg()
        asmcgocall(unsafe.Pointer(funcPC(miniterrno)), unsafe.Pointer(&libc____errno))
index 82a8db991413402262c0717cc76badb935d3ee91..6b6437dddd1d2a8cf8f33584617eb3c5fc59d590 100644 (file)
@@ -261,7 +261,7 @@ cont:
        MOVW    R1, 24(R6)
 
        // switch stack and g
-       MOVW    R6, R13 // sigtramp can not re-entrant, so no need to back up R13.
+       MOVW    R6, R13 // sigtramp is not re-entrant, so no need to back up R13.
        MOVW    R5, g
 
        BL      (R0)
index d0034d5a33f9aee2e2341980d0fd26a237a80efe..a3b851d2fc80e96e7d7921a3b94a400a8f3f6ed0 100644 (file)
@@ -245,7 +245,7 @@ cont:
        MOVD    R1, 48(R6)
 
        // switch stack and g
-       MOVD    R6, RSP // sigtramp can not re-entrant, so no need to back up RSP.
+       MOVD    R6, RSP // sigtramp is not re-entrant, so no need to back up RSP.
        MOVD    R5, g
 
        BL      (R0)
index 38914bb2b9f0912b5caf76a03d03981eaecea2b0..42571e063cd3f86e2c98d4bc5e6830ba4b265c16 100644 (file)
@@ -263,7 +263,7 @@ func vdso_find_version(info *vdso_info, ver *version_key) int32 {
                def = (*elf64Verdef)(add(unsafe.Pointer(def), uintptr(def.vd_next)))
        }
 
-       return -1 // can not match any version
+       return -1 // cannot match any version
 }
 
 func vdso_parse_symbols(info *vdso_info, version int32) {
index 381af0bead5034c3b2a2325c48b6683c2bc2731e..4fb1a1af9d988c0226f804e6262f2558fcef5cd6 100644 (file)
@@ -149,7 +149,7 @@ func (p *Pool) getSlow() (x interface{}) {
 func (p *Pool) pin() *poolLocal {
        pid := runtime_procPin()
        // In pinSlow we store to localSize and then to local, here we load in opposite order.
-       // Since we've disabled preemption, GC can not happen in between.
+       // Since we've disabled preemption, GC cannot happen in between.
        // Thus here we must observe local at least as large localSize.
        // We can observe a newer/larger local, it is fine (we must observe its zero-initialized-ness).
        s := atomic.LoadUintptr(&p.localSize) // load-acquire