From 3e45412327a2654a77944249962b3652e6142299 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Mon, 17 Jan 2011 12:40:45 +0100 Subject: Imported Upstream version 2011.01.12 --- doc/go_for_cpp_programmers.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/go_for_cpp_programmers.html') diff --git a/doc/go_for_cpp_programmers.html b/doc/go_for_cpp_programmers.html index a2291715c..fae2ec44e 100644 --- a/doc/go_for_cpp_programmers.html +++ b/doc/go_for_cpp_programmers.html @@ -198,7 +198,7 @@ the else, causing a syntax error. Since semicolons do end statements, you may continue using them as in C++. However, that is not the recommended style. Idiomatic Go code omits unnecessary semicolons, which in practice is all of them other -than the initial loop clause and cases where you want several +than the initial for loop clause and cases where you want several short statements on a single line.

@@ -668,7 +668,7 @@ func manager(ch chan cmd) { var val int = 0 for { c := <- ch - if c.get { c.val = val ch <- c } + if c.get { c.val = val; ch <- c } else { val = c.val } } } -- cgit v1.2.3