aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/json/encode_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/encode_test.go b/src/encoding/json/encode_test.go
index 53259f4a9b..23a14d0b17 100644
--- a/src/encoding/json/encode_test.go
+++ b/src/encoding/json/encode_test.go
@@ -1168,7 +1168,7 @@ func TestMarshalUncommonFieldNames(t *testing.T) {
func TestMarshalerError(t *testing.T) {
s := "test variable"
st := reflect.TypeOf(s)
- errText := "json: test error"
+ const errText = "json: test error"
tests := []struct {
CaseName