]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix a bunch of misspellings
authorIgor Zhilianin <igor.zhilianin@gmail.com>
Sat, 6 Oct 2018 06:10:25 +0000 (06:10 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 6 Oct 2018 15:40:03 +0000 (15:40 +0000)
Change-Id: If2954bdfc551515403706b2cd0dde94e45936e08
GitHub-Last-Rev: d4cfc41a5504cf10befefdb881d4c45986a1d1f8
GitHub-Pull-Request: golang/go#28049
Reviewed-on: https://go-review.googlesource.com/c/140299
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

40 files changed:
misc/cgo/test/callback.go
misc/cgo/testplugin/unnamed1/main.go
misc/cgo/testsanitizers/cc_test.go
misc/cgo/testshared/shared_test.go
src/cmd/compile/doc.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/walk.go
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/layout.go
src/cmd/compile/internal/ssa/poset.go
src/cmd/compile/internal/ssa/stackalloc.go
src/cmd/compile/internal/types/pkg.go
src/cmd/go/internal/modget/get.go
src/cmd/go/testdata/testterminal18153/terminal_test.go
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/util.go
src/cmd/internal/obj/x86/asm6.go
src/cmd/internal/obj/x86/ytab.go
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/vet/testdata/structtag.go
src/compress/flate/inflate.go
src/compress/zlib/reader.go
src/database/sql/sql_test.go
src/go/constant/value.go
src/go/parser/parser.go
src/go/printer/testdata/parser.go
src/math/big/float.go
src/net/http/transport_test.go
src/net/smtp/smtp_test.go
src/os/file_windows.go
src/os/os_test.go
src/runtime/mgc.go
src/runtime/proc.go
src/runtime/stack.go
src/syscall/mksyscall_windows.go
src/syscall/syscall_windows.go
test/closure3.dir/main.go
test/closure3.go

index b88bf134bc1e40a73109259155da0904f47621a8..58e126b41b6ff205bc52029adfae827fe55acb20 100644 (file)
@@ -295,7 +295,7 @@ func goWithString(s string) {
 }
 
 func testCallbackStack(t *testing.T) {
-       // Make cgo call and callback with different amount of stack stack available.
+       // Make cgo call and callback with different amount of stack available.
        // We do not do any explicit checks, just ensure that it does not crash.
        for _, f := range splitTests {
                f()
index 5c1df086d76df5fba39435cc7cab4d2befdeec32..caf09c9e890b9eb66cd2aa5586fc8de9c87b02fe 100644 (file)
@@ -9,7 +9,7 @@ import "C"
 
 func FuncInt() int { return 1 }
 
-// Add a recursive type to to check that type equality across plugins doesn't
+// Add a recursive type to check that type equality across plugins doesn't
 // crash. See https://golang.org/issues/19258
 func FuncRecursive() X { return X{} }
 
index f09ad52ceeebef0fc4bc087c7d79252c715d6c87..218e2254295ba5792daa1eae14fb446060b1bbec 100644 (file)
@@ -374,7 +374,7 @@ func (c *config) checkRuntime() (skip bool, err error) {
        }
 
        // libcgo.h sets CGO_TSAN if it detects TSAN support in the C compiler.
-       // Dump the preprocessor defines to check that that works.
+       // Dump the preprocessor defines to check that works.
        // (Sometimes it doesn't: see https://golang.org/issue/15983.)
        cmd, err := cc(c.cFlags...)
        if err != nil {
index 529a2c692f8e5379938d69691a65059f365d4282..c3c7a6aab6af47127d0ce604b311e12e5bfc119c 100644 (file)
@@ -578,7 +578,7 @@ func TestNotes(t *testing.T) {
 }
 
 // Build a GOPATH package (depBase) into a shared library that links against the goroot
-// runtime, another package (dep2) that links against the first, and and an
+// runtime, another package (dep2) that links against the first, and an
 // executable that links against dep2.
 func TestTwoGopathShlibs(t *testing.T) {
        goCmd(t, "install", "-buildmode=shared", "-linkshared", "depBase")
index 0dfaacb584acb691dd2d547677408abbff083a92..b68314cf73afcda5cb92e2d9167f04613fd01658 100644 (file)
@@ -125,7 +125,7 @@ directive can skip over a directive like any other comment.
 // For a //line comment, this is the first character of the next line, and
 // for a /*line comment this is the character position immediately following the closing */.
 // If no filename is given, the recorded filename is empty if there is also no column number;
-// otherwise is is the most recently recorded filename (actual filename or filename specified
+// otherwise it is the most recently recorded filename (actual filename or filename specified
 // by previous line directive).
 // If a line directive doesn't specify a column number, the column is "unknown" until
 // the next directive and the compiler does not report column numbers for that range.
index eb2ab6b916ab060875f4bd5e9acb50ed3666a00a..ab65ddebb4cb2190348f60b6c8c1776168b65ba1 100644 (file)
@@ -45,7 +45,7 @@ type Node struct {
        // - ONAME nodes that refer to local variables use it to identify their stack frame position.
        // - ODOT, ODOTPTR, and OINDREGSP use it to indicate offset relative to their base address.
        // - OSTRUCTKEY uses it to store the named field's offset.
-       // - Named OLITERALs use it to to store their ambient iota value.
+       // - Named OLITERALs use it to store their ambient iota value.
        // Possibly still more uses. If you find any, document them.
        Xoffset int64
 
index 5aa2146a8c86fc0bb1aa00914b5c9e389294c40e..1c398ef43cdff7cc57576692980ca98b0e5ab99f 100644 (file)
@@ -34,7 +34,7 @@ func walk(fn *Node) {
                }
        }
 
-       // Propagate the used flag for typeswitch variables up to the NONAME in it's definition.
+       // Propagate the used flag for typeswitch variables up to the NONAME in its definition.
        for _, ln := range fn.Func.Dcl {
                if ln.Op == ONAME && (ln.Class() == PAUTO || ln.Class() == PAUTOHEAP) && ln.Name.Defn != nil && ln.Name.Defn.Op == OTYPESW && ln.Name.Used() {
                        ln.Name.Defn.Left.Name.SetUsed(true)
index 7d79c9ad50f87cfe269006946045ff5d9ccc1855..21c12591c53701aaf6b5fd7dc1d2bec3e71b7e75 100644 (file)
 (MOVWZreg (MOVDconst [c])) -> (MOVDconst [int64(uint32(c))])
 
 
-// Lose widening ops fed to to stores
+// Lose widening ops fed to stores
 (MOVBstore [off] {sym} ptr (MOV(B|BZ|H|HZ|W|WZ)reg x) mem) -> (MOVBstore [off] {sym} ptr x mem)
 (MOVHstore [off] {sym} ptr (MOV(H|HZ|W|WZ)reg x) mem) -> (MOVHstore [off] {sym} ptr x mem)
 (MOVWstore [off] {sym} ptr (MOV(W|WZ)reg x) mem) -> (MOVWstore [off] {sym} ptr x mem)
index 15e111ae7c4e45a5ca217208a4e17328a737f235..78d5dc77fed23e1e4540310552c94f8f95ef5731 100644 (file)
@@ -12,7 +12,7 @@ func layout(f *Func) {
 }
 
 // Register allocation may use a different order which has constraints
-// imposed by the linear-scan algorithm. Note that that f.pass here is
+// imposed by the linear-scan algorithm. Note that f.pass here is
 // regalloc, so the switch is conditional on -d=ssa/regalloc/test=N
 func layoutRegallocOrder(f *Func) []*Block {
 
index 37b607977c31c0e121adb2e08780081df4905674..0e0e2789b148b281ac7d87f0fc0f02f2cfb53827 100644 (file)
@@ -114,7 +114,7 @@ type posetNode struct {
 // given that non-equality is not transitive, the only effect is that a later call
 // to SetEqual for the same values will fail. NonEqual checks whether it is known that
 // the nodes are different, either because SetNonEqual was called before, or because
-// we know that that they are strictly ordered.
+// we know that they are strictly ordered.
 //
 // It is implemented as a forest of DAGs; in each DAG, if node A dominates B,
 // it means that A<B. Equality is represented by mapping two SSA values to the same
index 8d0ab93c64f7aa3d18eb3d5e3348d18e16fc57df..76125851365ae08fb7203d9043589494333cfa85 100644 (file)
@@ -212,7 +212,7 @@ func (s *stackAllocState) stackalloc() {
                                        h := f.getHome(id)
                                        if h != nil && h.(LocalSlot).N == name.N && h.(LocalSlot).Off == name.Off {
                                                // A variable can interfere with itself.
-                                               // It is rare, but but it can happen.
+                                               // It is rare, but it can happen.
                                                s.nSelfInterfere++
                                                goto noname
                                        }
index e27c1fdba32a4447bb4efd170595a003cea2e089..e502b986aefb14c4facc0336b56f9c32487312cb 100644 (file)
@@ -135,7 +135,7 @@ func InternString(b []byte) string {
        return s
 }
 
-// CleanroomDo invokes f in an environment with with no preexisting packages.
+// CleanroomDo invokes f in an environment with no preexisting packages.
 // For testing of import/export only.
 func CleanroomDo(f func()) {
        saved := pkgMap
index 90a5bd81302c75a6c0fd1364dc0f4acdbca99138..54a2b724d420dfa2b5869d76f5e3afdef1bd8e29 100644 (file)
@@ -247,7 +247,7 @@ func runGet(cmd *base.Command, args []string) {
                // Deciding which module to upgrade/downgrade for a particular argument is difficult.
                // Patterns only make it more difficult.
                // We impose restrictions to avoid needing to interlace pattern expansion,
-               // like in in modload.ImportPaths.
+               // like in modload.ImportPaths.
                // Specifically, these patterns are supported:
                //
                //      - Relative paths like ../../foo or ../../foo... are restricted to matching directories
index d662e55ee552bd91c14e3c69fe7d78e47dc056ad..71493efe983741d6f3a41b5a9cb72b2036990116 100644 (file)
@@ -5,7 +5,7 @@
 // +build linux
 
 // This test is run by src/cmd/dist/test.go (cmd_go_test_terminal),
-// and not by cmd/go's tests. This is because this test requires that
+// and not by cmd/go's tests. This is because this test requires
 // that it be called with its stdout and stderr being a terminal.
 // dist doesn't run `cmd/go test` against this test directory if
 // dist's stdout/stderr aren't terminals.
index 67cefe3aeb613610e3e6bf60d1e5ab6e17df26a9..3056455f31410f4b259e8c972692cd6d9cea4c7c 100644 (file)
@@ -6118,7 +6118,7 @@ func (c *ctxt7) oaddi(p *obj.Prog, o1 int32, v int32, r int, rt int) uint32 {
 }
 
 /*
- * load a literal value into dr
+ * load a literal value into dr
  */
 func (c *ctxt7) omovlit(as obj.As, p *obj.Prog, a *obj.Addr, dr int) uint32 {
        var o1 int32
index 3453b71b3bc3bc2fadfbbe1ff7caf41eb7f6fa51..aeb7854193c944684a56230ff03dde4915f1eac9 100644 (file)
@@ -386,7 +386,7 @@ func offConv(off int64) string {
 // opSuffixSet is like regListSet, but for opcode suffixes.
 //
 // Unlike some other similar structures, uint8 space is not
-// divided by it's own values set (because the're only 256 of them).
+// divided by its own values set (because there are only 256 of them).
 // Instead, every arch may interpret/format all 8 bits as they like,
 // as long as they register proper cconv function for it.
 type opSuffixSet struct {
index 23ff7f32af70de465bf8fc8c7a112fecb7840a9e..1d056097c334c4f901c2a5e81cbfc46b34c1b3e9 100644 (file)
@@ -5051,7 +5051,7 @@ func (ab *AsmBuf) doasm(ctxt *obj.Link, cursym *obj.LSym, p *obj.Prog) {
 bad:
        if ctxt.Arch.Family != sys.AMD64 {
                // here, the assembly has failed.
-               // if its a byte instruction that has
+               // if it's a byte instruction that has
                // unaddressable registers, try to
                // exchange registers and reissue the
                // instruction with the operands renamed.
index 14bbaf72a943738f4100770c0c1943a9f513b067..7d0b75bf46415292b6389af461bf35d446520816 100644 (file)
@@ -22,7 +22,7 @@ type ytab struct {
 
 // Returns true if yt is compatible with args.
 //
-// Elements from args and yt.args are used to
+// Elements from args and yt.args are used
 // to index ycover table like `ycover[args[i]+yt.args[i]]`.
 // This means that args should contain values that already
 // multiplied by Ymax.
index 5d2aadf589970824ce7953396b745e69c73dd30e..e5d99815909b26042e546d61aa63ff0ab06b642d 100644 (file)
@@ -526,7 +526,7 @@ func (ex *examiner) entryFromOffset(off dwarf.Offset) *dwarf.Entry {
        return nil
 }
 
-// Return the ID that that examiner uses to refer to the DIE at offset off
+// Return the ID that examiner uses to refer to the DIE at offset off
 func (ex *examiner) idxFromOffset(off dwarf.Offset) int {
        if idx, found := ex.idxByOffset[off]; found {
                return idx
index f61a290e42d2c7d07c69b8c4e534264e819094d7..c2a2b3a7baf25cce4a4013449c3f037c13144470 100644 (file)
@@ -506,7 +506,7 @@ func Elfinit(ctxt *Link) {
                }
                elf64 = true
 
-               ehdr.phoff = ELF64HDRSIZE      /* Must be be ELF64HDRSIZE: first PHdr must follow ELF header */
+               ehdr.phoff = ELF64HDRSIZE      /* Must be ELF64HDRSIZE: first PHdr must follow ELF header */
                ehdr.shoff = ELF64HDRSIZE      /* Will move as we add PHeaders */
                ehdr.ehsize = ELF64HDRSIZE     /* Must be ELF64HDRSIZE */
                ehdr.phentsize = ELF64PHDRSIZE /* Must be ELF64PHDRSIZE */
@@ -533,7 +533,7 @@ func Elfinit(ctxt *Link) {
                fallthrough
        default:
                ehdr.phoff = ELF32HDRSIZE
-               /* Must be be ELF32HDRSIZE: first PHdr must follow ELF header */
+               /* Must be ELF32HDRSIZE: first PHdr must follow ELF header */
                ehdr.shoff = ELF32HDRSIZE      /* Will move as we add PHeaders */
                ehdr.ehsize = ELF32HDRSIZE     /* Must be ELF32HDRSIZE */
                ehdr.phentsize = ELF32PHDRSIZE /* Must be ELF32PHDRSIZE */
index 7029ba19c63eaaecd6fae4d42d2fb08f91df757b..8f3326d8cda8607939366ce257b3cefd2aaa99c1 100644 (file)
@@ -1565,7 +1565,7 @@ func ldobj(ctxt *Link, f *bio.Reader, lib *sym.Library, length int64, pn string,
        //
        // Note: It's possible for "\n!\n" to appear within the binary
        // package export data format. To avoid truncating the package
-       // definition prematurely (issue 21703), we keep keep track of
+       // definition prematurely (issue 21703), we keep track of
        // how many "$$" delimiters we've seen.
 
        import0 := f.Offset()
index ad55c4ab64daaab69ee3878c91a6eb323b6a6992..755d52be849af9fc7eef1f25d6e78ffd14e933d5 100644 (file)
@@ -59,7 +59,7 @@ type DuplicateJSONFields struct {
        NonJSON           int `foo:"a"`
        DuplicateNonJSON  int `foo:"a"`
        Embedded          struct {
-               DuplicateJSON int `json:"a"` // OK because its not in the same struct type
+               DuplicateJSON int `json:"a"` // OK because it's not in the same struct type
        }
        AnonymousJSON `json:"a"` // ERROR "struct field AnonymousJSON repeats json tag .a. also at structtag.go:52"
 
@@ -75,7 +75,7 @@ type DuplicateJSONFields struct {
        NonXML           int `foo:"a"`
        DuplicateNonXML  int `foo:"a"`
        Embedded2        struct {
-               DuplicateXML int `xml:"a"` // OK because its not in the same struct type
+               DuplicateXML int `xml:"a"` // OK because it's not in the same struct type
        }
        AnonymousXML `xml:"a"` // ERROR "struct field AnonymousXML repeats xml tag .a. also at structtag.go:68"
        Attribute    struct {
index 25e81f3f72745eb009911cacaeb499d4a5ecc0d2..685be70a3e38f7d4dba7b3a3a4d9808346d799a3 100644 (file)
@@ -65,7 +65,7 @@ func (e *WriteError) Error() string {
        return "flate: write error at offset " + strconv.FormatInt(e.Offset, 10) + ": " + e.Err.Error()
 }
 
-// Resetter resets a ReadCloser returned by NewReader or NewReaderDict to
+// Resetter resets a ReadCloser returned by NewReader or NewReaderDict
 // to switch to a new underlying Reader. This permits reusing a ReadCloser
 // instead of allocating a new one.
 type Resetter interface {
index 2efa1930354585aaa02367b37c1e9025457abae6..a195b380d8dd0bc25b7d78f1e5780c2581d37070 100644 (file)
@@ -51,7 +51,7 @@ type reader struct {
        scratch      [4]byte
 }
 
-// Resetter resets a ReadCloser returned by NewReader or NewReaderDict to
+// Resetter resets a ReadCloser returned by NewReader or NewReaderDict
 // to switch to a new underlying Reader. This permits reusing a ReadCloser
 // instead of allocating a new one.
 type Resetter interface {
index e52091c3afd0c36d46ba4c9baaa32d840ddd033f..1be9f770f173d3454085a7b3f6b6efad0ed0a1fa 100644 (file)
@@ -397,7 +397,7 @@ func TestQueryContextWait(t *testing.T) {
        prepares0 := numPrepares(t, db)
 
        // TODO(kardianos): convert this from using a timeout to using an explicit
-       // cancel when the query signals that is is "executing" the query.
+       // cancel when the query signals that it is "executing" the query.
        ctx, cancel := context.WithTimeout(context.Background(), 300*time.Millisecond)
        defer cancel()
 
index 64f8eb660a8815ea4e5a88b7ae7263056a126cd6..0982243edbf6880be726fb1d28b30c892a73106b 100644 (file)
@@ -170,7 +170,7 @@ func (x int64Val) String() string { return strconv.FormatInt(int64(x), 10) }
 func (x intVal) String() string   { return x.val.String() }
 func (x ratVal) String() string   { return rtof(x).String() }
 
-// String returns returns a decimal approximation of the Float value.
+// String returns a decimal approximation of the Float value.
 func (x floatVal) String() string {
        f := x.val
 
index 189bfb42236ecf6b1d44ff5218dd6242036f0231..ba16b652246f11bcae4c99e21ca29420fb830f53 100644 (file)
@@ -300,7 +300,7 @@ func (p *parser) consumeCommentGroup(n int) (comments *ast.CommentGroup, endline
 
 // Advance to the next non-comment token. In the process, collect
 // any comment groups encountered, and remember the last lead and
-// and line comments.
+// line comments.
 //
 // A lead comment is a comment group that starts and ends in a
 // line without any other tokens and that is followed by a non-comment
index 44dfa19ff350e4dd1f7754fd88db5002533eab5a..80b476cf2ee60fcb1fba429551aa1c42e548cb4d 100644 (file)
@@ -290,7 +290,7 @@ func (p *parser) consumeCommentGroup() (comments *ast.CommentGroup, endline int)
 
 // Advance to the next non-comment token. In the process, collect
 // any comment groups encountered, and remember the last lead and
-// and line comments.
+// line comments.
 //
 // A lead comment is a comment group that starts and ends in a
 // line without any other tokens and that is followed by a non-comment
index 55b93c8915072a9e70c387b026f52fa71067e15c..6b0cb3f1edd7e331ed3db2639376950121017a1e 100644 (file)
@@ -293,7 +293,7 @@ func (z *Float) setExpAndRound(exp int64, sbit uint) {
        z.round(sbit)
 }
 
-// SetMantExp sets z to mant × 2**exp and and returns z.
+// SetMantExp sets z to mant × 2**exp and returns z.
 // The result z has the same precision and rounding mode
 // as mant. SetMantExp is an inverse of MantExp but does
 // not require 0.5 <= |mant| < 1.0. Specifically:
index 739fe5f59718adc77324b4f250bf76702b0bf08c..8c31238c11cb353218cea0757e2877d26c92242f 100644 (file)
@@ -4279,7 +4279,7 @@ func testTransportIdleConnTimeout(t *testing.T, h2 bool) {
 }
 
 // Issue 16208: Go 1.7 crashed after Transport.IdleConnTimeout if an
-// HTTP/2 connection was established but but its caller no longer
+// HTTP/2 connection was established but its caller no longer
 // wanted it. (Assuming the connection cache was enabled, which it is
 // by default)
 //
index 000cac4fcbbfee07b8017d4259743ace92f78e96..42de7935c211d975340106b9763d4cb52661457c 100644 (file)
@@ -540,7 +540,7 @@ func TestSendMail(t *testing.T) {
        bcmdbuf := bufio.NewWriter(&cmdbuf)
        l, err := net.Listen("tcp", "127.0.0.1:0")
        if err != nil {
-               t.Fatalf("Unable to to create listener: %v", err)
+               t.Fatalf("Unable to create listener: %v", err)
        }
        defer l.Close()
 
@@ -639,7 +639,7 @@ QUIT
 func TestSendMailWithAuth(t *testing.T) {
        l, err := net.Listen("tcp", "127.0.0.1:0")
        if err != nil {
-               t.Fatalf("Unable to to create listener: %v", err)
+               t.Fatalf("Unable to create listener: %v", err)
        }
        defer l.Close()
        wg := sync.WaitGroup{}
index 8901eadd25667b84beeab2b137595bea37b10ef7..223698c13016c4e16b46e6f5d54a3ab490cc4d61 100644 (file)
@@ -356,7 +356,7 @@ func Symlink(oldname, newname string) error {
        // '/' does not work in link's content
        oldname = fromSlash(oldname)
 
-       // need the exact location of the oldname when its relative to determine if its a directory
+       // need the exact location of the oldname when it's relative to determine if it's a directory
        destpath := oldname
        if !isAbs(oldname) {
                destpath = dirname(newname) + `\` + oldname
index 08853691a9664153743d1a7a1e2dfb873fac7668..876058e73ad9abe3f3538d7b9bc904c44c47b3fc 100644 (file)
@@ -269,7 +269,7 @@ func TestRead0(t *testing.T) {
        }
 }
 
-// Reading a closed file should should return ErrClosed error
+// Reading a closed file should return ErrClosed error
 func TestReadClosed(t *testing.T) {
        path := sfdir + "/" + sfname
        file, err := Open(path)
index 9dfee5a4dc0516cb543ea79cff81b28e5de0a110..2c6af43da56376d6717adcb91f6227f129c32224 100644 (file)
@@ -884,7 +884,7 @@ const gcGoalUtilization = 0.30
 // mutator latency.
 const gcBackgroundUtilization = 0.25
 
-// gcCreditSlack is the amount of scan work credit that can can
+// gcCreditSlack is the amount of scan work credit that can
 // accumulate locally before updating gcController.scanWork and,
 // optionally, gcController.bgScanCredit. Lower values give a more
 // accurate assist ratio and make it more likely that assists will
index acfdc8472e15655ae8dc26de0263301f1b47bc28..f536b82aabe75125a286b23f85a14baa0e07a724 100644 (file)
@@ -1878,7 +1878,7 @@ func startTemplateThread() {
 
 // templateThread is a thread in a known-good state that exists solely
 // to start new threads in known-good states when the calling thread
-// may not be a a good state.
+// may not be in a good state.
 //
 // Many programs never need this, so templateThread is started lazily
 // when we first enter a state that might lead to running on a thread
index b815aa859eacd557f69d7b8a631bc2ae68c4884f..65aa7dbd5993d5e7f5241ca80e57e2d8f11c6f6a 100644 (file)
@@ -1279,7 +1279,7 @@ func getStackMap(frame *stkframe, cache *pcvalueCache, debug bool) (locals, args
                p = add(p, sys.PtrSize)
                *(*slice)(unsafe.Pointer(&objs)) = slice{array: noescape(p), len: int(n), cap: int(n)}
                // Note: the noescape above is needed to keep
-               // getStackMap from from "leaking param content:
+               // getStackMap from "leaking param content:
                // frame".  That leak propagates up to getgcmask, then
                // GCMask, then verifyGCInfo, which converts the stack
                // gcinfo tests into heap gcinfo tests :(
index 5fd3a756f87adc18d9327a71b65a596091821f57..dd84e33c0f1d730648e037fa42ff752809f7fff6 100644 (file)
@@ -22,7 +22,7 @@ like func declarations if //sys is replaced by func, but:
 
 * If the return parameter is an error number, it must be named err.
 
-* If go func name needs to be different from it's winapi dll name,
+* If go func name needs to be different from its winapi dll name,
   the winapi name could be specified at the end, after "=" sign, like
   //sys LoadLibrary(libname string) (handle uint32, err error) = LoadLibraryA
 
index 528ef4f26dfe69b15d490d756d301123a7d10be7..de05840386280405616fc470fa95039fdc739386 100644 (file)
@@ -123,14 +123,14 @@ func compileCallback(fn interface{}, cleanstack bool) uintptr
 
 // NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
 // This is useful when interoperating with Windows code requiring callbacks.
-// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
+// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
 func NewCallback(fn interface{}) uintptr {
        return compileCallback(fn, true)
 }
 
 // NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
 // This is useful when interoperating with Windows code requiring callbacks.
-// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
+// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
 func NewCallbackCDecl(fn interface{}) uintptr {
        return compileCallback(fn, false)
 }
index e382ad980b9e997a8800a2693ac1e89f0e07428d..59c36e3218696196fc0d8ed925d1c5a169247538 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.
 
-// Check correctness of various closure corner cases that
+// Check correctness of various closure corner cases
 // that are expected to be inlined
 
 package main
index 263d8fcb47419c7413ec97465ed91cac087bdcf6..37b548d6dcc69c4d3666ea8b16e632becd1c9166 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Check correctness of various closure corner cases that
+// Check correctness of various closure corner cases
 // that are expected to be inlined
 
 package ignored