mirror of
https://github.com/golang/go
synced 2024-11-18 21:54:49 -07: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
@ -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…
Reference in New Issue
Block a user