testdata: fix typo in literals.txt

Just noticed in passing that the type name was missing a "t".
While at it, make the fields consistently camelCase.
pull/407/head
Daniel Martí 3 years ago committed by Andrew LeFevre
parent 7ede21c981
commit e7320ec9c0

@ -63,9 +63,9 @@ package main
import "test/main/imported" import "test/main/imported"
type strucTest struct { type structTest struct {
field string field string
anotherfield string anotherField string
} }
const ( const (
@ -115,9 +115,9 @@ func main() {
println(reassign) println(reassign)
println(empty) println(empty)
x := strucTest{ x := structTest{
field: "to obfuscate", field: "to obfuscate",
anotherfield: "also obfuscate", anotherField: "also obfuscate",
} }
lambda := func() string { lambda := func() string {
@ -125,7 +125,7 @@ func main() {
}() }()
println(lambda) println(lambda)
println(x.field, x.anotherfield) println(x.field, x.anotherField)
testMap := map[string]string{"map key": "map value"} testMap := map[string]string{"map key": "map value"}
testMap["map key"] = "new value" testMap["map key"] = "new value"

Loading…
Cancel
Save