Skip to content

Commit

Permalink
Update golang code example & released v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 24, 2018
1 parent d616480 commit cf203f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "code-example",
"version": "1.0.2",
"version": "1.0.3",
"description": "Language code example.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/go.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func sieve() {
go generate(ch) // Start generate() as a subprocess.
for {
prime := <-ch
fmt.Print(prime, "\n")
fmt.Print(prime, "\\n")
ch1 := make(chan int)
go filter(ch, ch1, prime)
ch = ch1
Expand Down

0 comments on commit cf203f1

Please sign in to comment.