aboutsummaryrefslogtreecommitdiff
path: root/test/closure2.go
diff options
context:
space:
mode:
authorPatrice Arruda <patricearruda@google.com>2020-06-25 11:55:41 -0700
committerPatrice Arruda <patricearruda@google.com>2020-06-25 12:25:24 -0700
commit7f4776e1ddb05395a4025a30de8d7b78d62ac9aa (patch)
treea4ac4cdd694b156cc15be3c7c18bfd92db1fefdd /test/closure2.go
parent3affa1d2632b48f9589ab4c91ca1b825d7c73a87 (diff)
downloadlinux-x86-7f4776e1ddb05395a4025a30de8d7b78d62ac9aa.tar.gz
Update linux go to 1.15beta1android-r-beta-3android-r-beta-2
From https://ci.android.com/builds/submitted/6626886/linux/latest/go.zip Test: m blueprint_tools Change-Id: Ib0d1176e769611b25554177aef209bc7e6456694
Diffstat (limited to 'test/closure2.go')
-rw-r--r--test/closure2.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/closure2.go b/test/closure2.go
index 4d61b45d3..e4db05d88 100644
--- a/test/closure2.go
+++ b/test/closure2.go
@@ -74,7 +74,7 @@ func main() {
for i := range [2]int{} {
if i == 0 {
g = func() int {
- return i // test that we capture by ref here, i is mutated on every interation
+ return i // test that we capture by ref here, i is mutated on every interaction
}
}
}
@@ -90,7 +90,7 @@ func main() {
q++
g = func() int {
return q // test that we capture by ref here
- // q++ must on a different decldepth than q declaration
+ // q++ must on a different decldepth than q declaration
}
}
if g() != 2 {
@@ -108,7 +108,7 @@ func main() {
}()] = range [2]int{} {
g = func() int {
return q // test that we capture by ref here
- // q++ must on a different decldepth than q declaration
+ // q++ must on a different decldepth than q declaration
}
}
if g() != 2 {