]> Cypherpunks repositories - gostls13.git/commit
time: correct time.AppendText's error message
authorapocelipes <seve3r@outlook.com>
Wed, 16 Oct 2024 21:00:17 +0000 (21:00 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 17 Oct 2024 03:01:53 +0000 (03:01 +0000)
commit2b664d586c217b8111bfeeb26c82244199ebc150
tree80b44b34e3f902667017e2f74564e238b5de8b16
parentf15195a063cf353b71d7f2a6da860f8f65221183
time: correct time.AppendText's error message

"time.AppendText" returns error messages that start with the prefix
"time.MarshalText: " which seems confusion.

Now correct the message prefix to "time.AppendText: " and add a test
to prevent regression.

Change-Id: I5742c9c3ed802eb79c65d459910deae4f3652ffd
GitHub-Last-Rev: ce965595c1dafab4a3db3d3f9f9edc9e43c5dea2
GitHub-Pull-Request: golang/go#69914
Reviewed-on: https://go-review.googlesource.com/c/go/+/620597
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/time/time.go
src/time/time_test.go