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