Use backtick quotes to avoid excess escaping

pull/2000/head
YuviPanda 9 years ago
parent 97a655d225
commit cd7275069e

@ -143,7 +143,7 @@ one:
} }
func TestToJson(t *testing.T) { func TestToJson(t *testing.T) {
expect := "{\"foo\":\"bar\"}" expect := `{"foo":"bar"}`
v := struct { v := struct {
Foo string `json:"foo"` Foo string `json:"foo"`
}{ }{

Loading…
Cancel
Save