1
0
mirror of https://github.com/golang/go synced 2024-09-25 09:10:14 -06:00

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: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Alex Kohler 2018-08-30 10:01:54 -04:00 committed by Brad Fitzpatrick
parent dd9e81f678
commit 31389254de
3 changed files with 5 additions and 6 deletions

View 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
}

View 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
}

View 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)