Skip to content

Commit 527ffeb

Browse files
dvyukovbradfitz
authored andcommitted
internal/trace: fix a typo in error message
Change-Id: Id79eaa6d49dae80c334c7243b0a5bbcdcb9397d3 Reviewed-on: https://go-review.googlesource.com/21758 Reviewed-by: Mikio Hara <[email protected]>
1 parent de7ee57 commit 527ffeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/trace/parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func readTrace(r io.Reader) ([]rawEvent, map[uint64]string, error) {
134134
return nil, nil, err
135135
}
136136
if ln == 0 {
137-
return nil, nil, fmt.Errorf("string at offset %d has invalie length 0", off)
137+
return nil, nil, fmt.Errorf("string at offset %d has invalid length 0", off)
138138
}
139139
if ln > 1e6 {
140140
return nil, nil, fmt.Errorf("string at offset %d has too large length %v", off, ln)

0 commit comments

Comments
 (0)