]> Cypherpunks repositories - gostls13.git/commitdiff
internal/coverage/decodemeta: correct wording in unknown version error
authorjjpinto <jorgpinto@gmail.com>
Wed, 24 Dec 2025 17:39:35 +0000 (17:39 +0000)
committerCherry Mui <cherryyz@google.com>
Mon, 29 Dec 2025 20:45:22 +0000 (12:45 -0800)
Correct the wording in the error message returned by readFileHeader when
encountering a meta-data file with an unsupported version.

Change-Id: I49be1bb1509ccc64e8384103bd7f19382b536c26
GitHub-Last-Rev: 2ab8e05a21443c45635e42d788946bec2478ca99
GitHub-Pull-Request: golang/go#76981
Reviewed-on: https://go-review.googlesource.com/c/go/+/732581
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@golang.org>
src/internal/coverage/decodemeta/decodefile.go

index 6f4dd1a3ec0c74c77735f698b8f4595074be26d9..474844bf978ed1821adc926f4b69a0defce3b1ff 100644 (file)
@@ -75,7 +75,7 @@ func (r *CoverageMetaFileReader) readFileHeader() error {
        // Vet the version. If this is a meta-data file from the future,
        // we won't be able to read it.
        if r.hdr.Version > coverage.MetaFileVersion {
-               return fmt.Errorf("meta-data file withn unknown version %d (expected %d)", r.hdr.Version, coverage.MetaFileVersion)
+               return fmt.Errorf("meta-data file with an unknown version %d (expected %d)", r.hdr.Version, coverage.MetaFileVersion)
        }
 
        // Read package offsets for good measure