diff options
| author | Agniva De Sarker <agnivade@yahoo.co.in> | 2017-08-22 15:41:50 +0530 |
|---|---|---|
| committer | Joe Tsai <thebrokentoaster@gmail.com> | 2017-08-23 03:07:12 +0000 |
| commit | ea5e3bd2a18fc26fa9028865c8f391b18ed24786 (patch) | |
| tree | 5811c061ff099c5dae07ced0ad268747189e8698 /src/cmd | |
| parent | f6944c780f5104114a7a5e404115478f8deb739b (diff) | |
| download | go-ea5e3bd2a18fc26fa9028865c8f391b18ed24786.tar.xz | |
all: fix easy-to-miss typos
Using the wonderful https://github.com/client9/misspell tool.
Change-Id: Icdbc75a5559854f4a7a61b5271bcc7e3f99a1a24
Reviewed-on: https://go-review.googlesource.com/57851
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/compile/internal/ssa/looprotate.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/syntax/branches.go | 2 | ||||
| -rw-r--r-- | src/cmd/internal/objabi/symkind.go | 2 | ||||
| -rw-r--r-- | src/cmd/link/internal/ld/lib.go | 2 | ||||
| -rw-r--r-- | src/cmd/link/internal/ld/link.go | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/ssa/looprotate.go b/src/cmd/compile/internal/ssa/looprotate.go index c5b768264d..d9cba9e9b0 100644 --- a/src/cmd/compile/internal/ssa/looprotate.go +++ b/src/cmd/compile/internal/ssa/looprotate.go @@ -62,7 +62,7 @@ func loopRotate(f *Func) { break } nextb := f.Blocks[nextIdx] - if nextb == p { // original loop precedessor is next + if nextb == p { // original loop predecessor is next break } if loopnest.b2l[nextb.ID] != loop { // about to leave loop diff --git a/src/cmd/compile/internal/syntax/branches.go b/src/cmd/compile/internal/syntax/branches.go index 5fecdd6551..2fd97a4a67 100644 --- a/src/cmd/compile/internal/syntax/branches.go +++ b/src/cmd/compile/internal/syntax/branches.go @@ -131,7 +131,7 @@ type targets struct { // blockBranches processes a block's body starting at start and returns the // list of unresolved (forward) gotos. parent is the immediately enclosing // block (or nil), ctxt provides information about the enclosing statements, -// and lstmt is the labeled statement asociated with this block, or nil. +// and lstmt is the labeled statement associated with this block, or nil. func (ls *labelScope) blockBranches(parent *block, ctxt targets, lstmt *LabeledStmt, start src.Pos, body []Stmt) []*BranchStmt { b := &block{parent: parent, start: start, lstmt: lstmt} diff --git a/src/cmd/internal/objabi/symkind.go b/src/cmd/internal/objabi/symkind.go index ac91824d17..ea180d0bf8 100644 --- a/src/cmd/internal/objabi/symkind.go +++ b/src/cmd/internal/objabi/symkind.go @@ -52,7 +52,7 @@ const ( SBSS // Statically data that is initially all 0s and does not contain pointers SNOPTRBSS - // Thread-local data that is initally all 0s + // Thread-local data that is initially all 0s STLSBSS // Debugging data SDWARFINFO diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go index c7f14b3e04..3207bdb837 100644 --- a/src/cmd/link/internal/ld/lib.go +++ b/src/cmd/link/internal/ld/lib.go @@ -746,7 +746,7 @@ func genhash(ctxt *Link, lib *Library) { // To compute the hash of a package, we hash the first line of // __.PKGDEF (which contains the toolchain version and any // GOEXPERIMENT flags) and the export data (which is between - // the first two occurences of "\n$$"). + // the first two occurrences of "\n$$"). pkgDefBytes := make([]byte, atolwhex(arhdr.size)) _, err = io.ReadFull(f, pkgDefBytes) diff --git a/src/cmd/link/internal/ld/link.go b/src/cmd/link/internal/ld/link.go index 857957afb0..3a9314ec42 100644 --- a/src/cmd/link/internal/ld/link.go +++ b/src/cmd/link/internal/ld/link.go @@ -129,7 +129,7 @@ const ( // consulted to avoid bugs where a symbol is put on a list twice. AttrOnList // AttrLocal marks symbols that are only visible within the module - // (exectuable or shared library) being linked. Only relevant when + // (executable or shared library) being linked. Only relevant when // dynamically linking Go code. AttrLocal // AttrReflectMethod marks certain methods from the reflect package that |
