]> Cypherpunks repositories - gostls13.git/commitdiff
internal/trace: fix a typo in error message
authorDmitry Vyukov <dvyukov@google.com>
Sun, 10 Apr 2016 10:49:40 +0000 (12:49 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 10 Apr 2016 14:39:59 +0000 (14:39 +0000)
Change-Id: Id79eaa6d49dae80c334c7243b0a5bbcdcb9397d3
Reviewed-on: https://go-review.googlesource.com/21758
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
src/internal/trace/parser.go

index 5db3fc317edb093de640af256f4f96c4ac2e3462..65530b15c3418604b8ec40bfe45cf76ec1473e70 100644 (file)
@@ -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)