]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos as reported by 'misspell'
authorLeon Klingele <git@leonklingele.de>
Fri, 22 Feb 2019 15:53:52 +0000 (15:53 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 26 Feb 2019 23:02:05 +0000 (23:02 +0000)
Change-Id: I904b8655f21743189814bccf24073b6fbb9fc56d
GitHub-Last-Rev: b032c14394c949f9ad7b18d019a3979d38d4e1fb
GitHub-Pull-Request: golang/go#29997
Reviewed-on: https://go-review.googlesource.com/c/160421
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/inl_test.go
src/cmd/compile/internal/ssa/html.go
src/cmd/trace/annotations.go
src/cmd/trace/goroutines.go
src/internal/xcoff/file.go
src/os/os_windows_test.go
src/runtime/mem_bsd.go
src/runtime/mgcstack.go
src/runtime/symtab.go
src/syscall/syscall_aix.go
src/testing/testing.go

index 58d13f2dcf5f52be43fd7e62136cc37f9e63eeac..c29c1755f369bfdb8192ac56e7d68c6d07910bd6 100644 (file)
@@ -26,7 +26,7 @@ func TestIntendedInlining(t *testing.T) {
        t.Parallel()
 
        // want is the list of function names (by package) that should
-       // be inlinable. If they have no callers in thier packages, they
+       // be inlinable. If they have no callers in their packages, they
        // might not actually be inlined anywhere.
        want := map[string][]string{
                "runtime": {
@@ -218,7 +218,7 @@ func TestIntendedInlining(t *testing.T) {
                if m := canInline.FindStringSubmatch(line); m != nil {
                        fname := m[1]
                        fullname := curPkg + "." + fname
-                       // If function must be inlined somewhere, beeing inlinable is not enough
+                       // If function must be inlined somewhere, being inlinable is not enough
                        if _, ok := must[fullname]; !ok {
                                delete(notInlinedReason, fullname)
                                continue
index 1202987acc4a5e8874d4fc8210cb59d347a15357..a1b718096d76e6801d856d5eac3c99e1b63efac3 100644 (file)
@@ -1080,7 +1080,7 @@ type dotWriter struct {
 }
 
 // newDotWriter returns non-nil value when mask is valid.
-// dotWriter will generate SVGs only for the phases specifed in the mask.
+// dotWriter will generate SVGs only for the phases specified in the mask.
 // mask can contain following patterns and combinations of them:
 // *   - all of them;
 // x-y - x through y, inclusive;
index 24984156811c4c6e41fe7f7a43137f75ebbb7b54..d991588a727e7e4bee107049c65eb19a402b8d2b 100644 (file)
@@ -1159,17 +1159,17 @@ var templUserRegionType = template.Must(template.New("").Funcs(template.FuncMap{
                d := time.Duration(nsec) * time.Nanosecond
                return template.HTML(niceDuration(d))
        },
-       "percent": func(dividened, divisor int64) template.HTML {
+       "percent": func(dividend, divisor int64) template.HTML {
                if divisor == 0 {
                        return ""
                }
-               return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividened)/float64(divisor)*100))
+               return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividend)/float64(divisor)*100))
        },
-       "barLen": func(dividened, divisor int64) template.HTML {
+       "barLen": func(dividend, divisor int64) template.HTML {
                if divisor == 0 {
                        return "0"
                }
-               return template.HTML(fmt.Sprintf("%.2f%%", float64(dividened)/float64(divisor)*100))
+               return template.HTML(fmt.Sprintf("%.2f%%", float64(dividend)/float64(divisor)*100))
        },
        "unknownTime": func(desc regionDesc) int64 {
                sum := desc.ExecTime + desc.IOTime + desc.BlockTime + desc.SyscallTime + desc.SchedWaitTime
index 548871a82c20ad8c8df9f5eb4a7c8129ab863658..100891d64e0404cae55b682ba01477d8d2239794 100644 (file)
@@ -166,17 +166,17 @@ var templGoroutine = template.Must(template.New("").Funcs(template.FuncMap{
                d := time.Duration(nsec) * time.Nanosecond
                return template.HTML(niceDuration(d))
        },
-       "percent": func(dividened, divisor int64) template.HTML {
+       "percent": func(dividend, divisor int64) template.HTML {
                if divisor == 0 {
                        return ""
                }
-               return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividened)/float64(divisor)*100))
+               return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividend)/float64(divisor)*100))
        },
-       "barLen": func(dividened, divisor int64) template.HTML {
+       "barLen": func(dividend, divisor int64) template.HTML {
                if divisor == 0 {
                        return "0"
                }
-               return template.HTML(fmt.Sprintf("%.2f%%", float64(dividened)/float64(divisor)*100))
+               return template.HTML(fmt.Sprintf("%.2f%%", float64(dividend)/float64(divisor)*100))
        },
        "unknownTime": func(desc *trace.GDesc) int64 {
                sum := desc.ExecTime + desc.IOTime + desc.BlockTime + desc.SyscallTime + desc.SchedWaitTime
index 0923b9fcf3a59a85d8f038499029411201974610..66b5391d58359822b0779495ebe04a08ff991b79 100644 (file)
@@ -334,8 +334,8 @@ func NewFile(r io.ReaderAt) (*File, error) {
 
                // If this symbol is a function, it must retrieve its size from
                // its AUX_FCN entry.
-               // It can happend that a function symbol doesn't have any AUX_FCN.
-               // In this case, needAuxFcn is false and their size will be set to 0
+               // It can happen that a function symbol doesn't have any AUX_FCN.
+               // In this case, needAuxFcn is false and their size will be set to 0.
                if needAuxFcn {
                        switch f.TargetMachine {
                        case U802TOCMAGIC:
index 285e1eb35e9d1606b90b2a1aaee75266a75e130c..dc9e629b013d2e23480d4d10b7e652b1cbeb0a50 100644 (file)
@@ -1013,7 +1013,7 @@ func TestStatOfInvalidName(t *testing.T) {
 // It returns path to the found drive root directory (like Z:\) or error.
 func findUnusedDriveLetter() (string, error) {
        // Do not use A: and B:, because they are reserved for floppy drive.
-       // Do not use C:, becasue it is normally used for main drive.
+       // Do not use C:, because it is normally used for main drive.
        for l := 'Z'; l >= 'D'; l-- {
                p := string(l) + `:\`
                _, err := os.Stat(p)
index 84238d7279fb5d40355fbb182649a02adc8dbc8e..796bb4422327609855c724a9a1e25dfb8f359593 100644 (file)
@@ -45,7 +45,7 @@ func sysReserve(v unsafe.Pointer, n uintptr) unsafe.Pointer {
        flags := int32(_MAP_ANON | _MAP_PRIVATE)
        if raceenabled && GOOS == "darwin" {
                // Currently the race detector expects memory to live within a certain
-               // range, and on Darwin 10.10 mmap is prone to ignoring hints, moreso
+               // range, and on Darwin 10.10 mmap is prone to ignoring hints, more so
                // than later versions and other BSDs (#26475). So, even though it's
                // potentially dangerous to MAP_FIXED, we do it in the race detection
                // case because it'll help maintain the race detector's invariants.
index 86e60d43815ef0c78e1674d1712377760cf05e8e..baeaa4fd5595e5ef53017ded85d7e95f7538f331 100644 (file)
@@ -274,7 +274,7 @@ func (s *stackScanState) addObject(addr uintptr, typ *_type) {
        obj.off = uint32(addr - s.stack.lo)
        obj.size = uint32(typ.size)
        obj.setType(typ)
-       // obj.left and obj.right will be initalized by buildIndex before use.
+       // obj.left and obj.right will be initialized by buildIndex before use.
        s.nobjs++
 }
 
index 17e342ef699a017c2849d6b8b50a1b36222ff591..a7538482dc6f02d2202c9d6f617a8e9be6208ffc 100644 (file)
@@ -475,7 +475,7 @@ func FuncForPC(pc uintptr) *Func {
        }
        if inldata := funcdata(f, _FUNCDATA_InlTree); inldata != nil {
                // Note: strict=false so bad PCs (those between functions) don't crash the runtime.
-               // We just report the preceeding function in that situation. See issue 29735.
+               // We just report the preceding function in that situation. See issue 29735.
                // TODO: Perhaps we should report no function at all in that case.
                // The runtime currently doesn't have function end info, alas.
                if ix := pcdatavalue1(f, _PCDATA_InlTreeIndex, pc, nil, false); ix >= 0 {
index 6512761c3381a62d222f26fe05a8564b12e54830..ea88c666bece4cc660c10ca054fa36f82c171cff 100644 (file)
@@ -388,7 +388,7 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
 func (sa *RawSockaddrUnix) getLen() (int, error) {
        // Some versions of AIX have a bug in getsockname (see IV78655).
        // We can't rely on sa.Len being set correctly.
-       n := SizeofSockaddrUnix - 3 // substract leading Family, Len, terminating NUL.
+       n := SizeofSockaddrUnix - 3 // subtract leading Family, Len, terminating NUL.
        for i := 0; i < n; i++ {
                if sa.Path[i] == 0 {
                        n = i
index 3068630e8a97685c686ca988913d58d9693ec308..79dcf76908aa190caeef3400767762336ba41259 100644 (file)
@@ -614,7 +614,7 @@ func (c *common) log(s string) {
        c.logDepth(s, 3) // logDepth + log + public function
 }
 
-// logDepth generates the output. At an arbitary stack depth
+// logDepth generates the output at an arbitrary stack depth.
 func (c *common) logDepth(s string, depth int) {
        c.mu.Lock()
        defer c.mu.Unlock()