From 6a62b85079a5e248adad6327bee1a036267116c4 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Mon, 3 Dec 2018 11:30:23 +0800 Subject: [PATCH] resolve example code issues --- README.md | 2 -- README_ZH.md | 2 -- examples/main.go | 2 -- 3 files changed, 6 deletions(-) diff --git a/README.md b/README.md index bf8ce85..ce433ed 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,11 @@ func myFunc(i interface{}) { n := i.(int32) atomic.AddInt32(&sum, n) fmt.Printf("run with %d\n", n) - return nil } func demoFunc() { time.Sleep(10 * time.Millisecond) fmt.Println("Hello World!") - return nil } func main() { diff --git a/README_ZH.md b/README_ZH.md index 966c205..dc1544d 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -55,13 +55,11 @@ func myFunc(i interface{}) { n := i.(int32) atomic.AddInt32(&sum, n) fmt.Printf("run with %d\n", n) - return nil } func demoFunc() { time.Sleep(10 * time.Millisecond) fmt.Println("Hello World!") - return nil } func main() { diff --git a/examples/main.go b/examples/main.go index be8dfc3..23f39db 100644 --- a/examples/main.go +++ b/examples/main.go @@ -37,13 +37,11 @@ func myFunc(i interface{}) { n := i.(int32) atomic.AddInt32(&sum, n) fmt.Printf("run with %d\n", n) - return nil } func demoFunc() { time.Sleep(10 * time.Millisecond) fmt.Println("Hello World!") - return nil } func main() {