mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
internal/trace: fix a typo in error message
Change-Id: Id79eaa6d49dae80c334c7243b0a5bbcdcb9397d3 Reviewed-on: https://go-review.googlesource.com/21758 Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
This commit is contained in:
parent
de7ee57c7e
commit
527ffebb2c
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ func readTrace(r io.Reader) ([]rawEvent, map[uint64]string, error) {
|
|||
return nil, nil, err
|
||||
}
|
||||
if ln == 0 {
|
||||
return nil, nil, fmt.Errorf("string at offset %d has invalie length 0", off)
|
||||
return nil, nil, fmt.Errorf("string at offset %d has invalid length 0", off)
|
||||
}
|
||||
if ln > 1e6 {
|
||||
return nil, nil, fmt.Errorf("string at offset %d has too large length %v", off, ln)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue