aboutsummaryrefslogtreecommitdiffstats
path: root/testdata/simple.go
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/simple.go')
-rw-r--r--testdata/simple.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/testdata/simple.go b/testdata/simple.go
index 9fdf7a5..772b58c 100644
--- a/testdata/simple.go
+++ b/testdata/simple.go
@@ -35,7 +35,7 @@ func argumentReference() {
s := aStruct{field: 0}
- go func(s *aStruct) {
- s.field += 1 // want "reference s in goroutine closure"
+ go func(s *aStruct) { // want "reference s in goroutine closure"
+ s.field += 1
}(&s)
}