Commit 527ffebb authored by Dmitry Vyukov's avatar Dmitry Vyukov Committed by Brad Fitzpatrick

internal/trace: fix a typo in error message

Change-Id: Id79eaa6d49dae80c334c7243b0a5bbcdcb9397d3
Reviewed-on: https://go-review.googlesource.com/21758Reviewed-by: default avatarMikio Hara <mikioh.mikioh@gmail.com>
parent de7ee57c
...@@ -134,7 +134,7 @@ func readTrace(r io.Reader) ([]rawEvent, map[uint64]string, error) { ...@@ -134,7 +134,7 @@ func readTrace(r io.Reader) ([]rawEvent, map[uint64]string, error) {
return nil, nil, err return nil, nil, err
} }
if ln == 0 { 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 { if ln > 1e6 {
return nil, nil, fmt.Errorf("string at offset %d has too large length %v", off, ln) return nil, nil, fmt.Errorf("string at offset %d has too large length %v", off, ln)
......
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