Re: code review 5555062: doc: fix typo in Go for C++ programmers (issue 5555062)

15 views
Skip to first unread message

ia...@golang.org

unread,
Jan 20, 2012, 5:43:57 PM1/20/12
to trollerip...@gmail.com, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com

ia...@golang.org

unread,
Jan 20, 2012, 5:44:07 PM1/20/12
to trollerip...@gmail.com, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
*** Submitted as
http://code.google.com/p/go/source/detail?r=6a04382fce00 ***

doc: fix typo in Go for C++ programmers

R=iant
CC=golang-dev
http://codereview.appspot.com/5555062

Committer: Ian Lance Taylor <ia...@golang.org>


http://codereview.appspot.com/5555062/

trollerip...@gmail.com

unread,
Jan 20, 2012, 4:52:15 PM1/20/12
to ia...@golang.org, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reviewers: iant,

Message:
Hello ia...@golang.org (cc: golan...@googlegroups.com),

I'd like you to review this change to
https://go.googlecode.com/hg/


Description:


doc: fix typo in Go for C++ programmers

Please review this at http://codereview.appspot.com/5555062/

Affected files:
M doc/go_for_cpp_programmers.html


Index: doc/go_for_cpp_programmers.html
===================================================================
--- a/doc/go_for_cpp_programmers.html
+++ b/doc/go_for_cpp_programmers.html
@@ -225,7 +225,7 @@
</pre>

<p>
-Go does not require parentheses around the condition of a <code>if</code>
+Go does not require parentheses around the condition of an <code>if</code>
statement, or the expressions of a <code>for</code> statement, or the
value of a
<code>switch</code> statement. On the other hand, it does require curly
braces
around the body of an <code>if</code> or <code>for</code> statement.
@@ -538,7 +538,7 @@

<p>
The <code>set</code> method is effectively inherited from
-<code>myChildType</code>, because
+<code>myType</code>, because
methods associated with the anonymous field are promoted to become methods
of the enclosing type. In this case, because <code>myChildType</code> has
an
anonymous field of type <code>myType</code>, the methods of


Reply all
Reply to author
Forward
0 new messages