Commit 31389254 authored by Alex Kohler's avatar Alex Kohler Committed by Brad Fitzpatrick

all: fix typos

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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent dd9e81f6
......@@ -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
}
......
......@@ -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
}
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment