]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix typo in Go for C++ programmers
authorStefan Nilsson <snilsson@nada.kth.se>
Fri, 20 Jan 2012 22:44:05 +0000 (14:44 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 20 Jan 2012 22:44:05 +0000 (14:44 -0800)
R=iant
CC=golang-dev
https://golang.org/cl/5555062

doc/go_for_cpp_programmers.html

index 7edb88013f5455791659e06f2de77f8933506f94..8e215190fa5dec4b85f20b1eda8721af688520ec 100644 (file)
@@ -225,7 +225,7 @@ f(v9.i, p9.i)
 </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 @@ func f2() {
 
 <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