From e7320ec9c0346a0b1e192e761413f32f525f079a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 29 Sep 2021 12:46:45 +0100 Subject: [PATCH] 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. --- testdata/scripts/literals.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testdata/scripts/literals.txt b/testdata/scripts/literals.txt index edbd31b..9fb8b63 100644 --- a/testdata/scripts/literals.txt +++ b/testdata/scripts/literals.txt @@ -63,9 +63,9 @@ package main import "test/main/imported" -type strucTest struct { +type structTest struct { field string - anotherfield string + anotherField string } const ( @@ -115,9 +115,9 @@ func main() { println(reassign) println(empty) - x := strucTest{ + x := structTest{ field: "to obfuscate", - anotherfield: "also obfuscate", + anotherField: "also obfuscate", } lambda := func() string { @@ -125,7 +125,7 @@ func main() { }() println(lambda) - println(x.field, x.anotherfield) + println(x.field, x.anotherField) testMap := map[string]string{"map key": "map value"} testMap["map key"] = "new value"