aboutsummaryrefslogtreecommitdiff
path: root/content/flowcontrol/for-continued.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2024-07-14 19:34:34 +0700
committerShulhan <m.shulhan@gmail.com>2024-07-14 20:13:54 +0700
commit4c9d07a3dbc33c8d18e2417f2ad626d90c4de626 (patch)
treeb95b9d8faaa473f3e030ccc701162a98c506a8f7 /content/flowcontrol/for-continued.go
parente0be34f59e1097a6f3e0268483f50e17eeb4330d (diff)
downloadgolang-id-tour-4c9d07a3dbc33c8d18e2417f2ad626d90c4de626.tar.xz
all: sync with golang.org/x/website (2/2)
Perubahan, * _content/tour: change '// +build' to '//go:build'
Diffstat (limited to 'content/flowcontrol/for-continued.go')
-rw-r--r--content/flowcontrol/for-continued.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/flowcontrol/for-continued.go b/content/flowcontrol/for-continued.go
index 71c9686..fcf2f87 100644
--- a/content/flowcontrol/for-continued.go
+++ b/content/flowcontrol/for-continued.go
@@ -1,4 +1,4 @@
-// +build OMIT
+//go:build OMIT
package main
@@ -6,7 +6,7 @@ import "fmt"
func main() {
sum := 1
- for ; sum < 1000; {
+ for sum < 1000 {
sum += sum
}
fmt.Println(sum)