]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos
authorAlex Kohler <alexjohnkohler@gmail.com>
Thu, 30 Aug 2018 14:01:54 +0000 (10:01 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 30 Aug 2018 15:41:29 +0000 (15:41 +0000)
Change-Id: Icded6c786b7b185d5aff055f34e0cfe9e521826a
Reviewed-on: https://go-review.googlesource.com/132176
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/trace/annotations.go
src/cmd/trace/trace.go

index 31195638ab5f8038b29daab6589a81fcc5629a8e..4b12a84cdfec2a616927ecc26d003da02b99fc12 100644 (file)
@@ -1045,7 +1045,7 @@ func needRaceCleanup(sym interface{}, v *Value) bool {
                                // Check for racefuncenter will encounter racefuncexit and vice versa.
                                // Allow calls to panic*
                                default:
-                                       // If we encounterd any call, we need to keep racefunc*,
+                                       // If we encountered any call, we need to keep racefunc*,
                                        // for accurate stacktraces.
                                        return false
                                }
index 8071ac887967a65d8616612b961f4c7366bc4647..307da58bd5a4e6bf8dbfd1d3357af1e2a0b3aaf5 100644 (file)
@@ -438,9 +438,8 @@ func (task *taskDesc) complete() bool {
        return task.create != nil && task.end != nil
 }
 
-// descendents returns all the task nodes in the subtree rooted from this task.
-// TODO: the method name is misspelled
-func (task *taskDesc) decendents() []*taskDesc {
+// descendants returns all the task nodes in the subtree rooted from this task.
+func (task *taskDesc) descendants() []*taskDesc {
        if task == nil {
                return nil
        }
index 62ff4d68c51c5a795f3ebb458b64f397f2497813..d986b71f79e0a1a81040eb080e9c8cde1a4e8de2 100644 (file)
@@ -220,7 +220,7 @@ func httpJsonTrace(w http.ResponseWriter, r *http.Request) {
                params.startTime = task.firstTimestamp() - 1
                params.endTime = task.lastTimestamp() + 1
                params.maing = goid
-               params.tasks = task.decendents()
+               params.tasks = task.descendants()
                gs := map[uint64]bool{}
                for _, t := range params.tasks {
                        // find only directly involved goroutines
@@ -244,7 +244,7 @@ func httpJsonTrace(w http.ResponseWriter, r *http.Request) {
                params.mode = modeTaskOriented
                params.startTime = task.firstTimestamp() - 1
                params.endTime = task.lastTimestamp() + 1
-               params.tasks = task.decendents()
+               params.tasks = task.descendants()
        }
 
        start := int64(0)