diff --git a/doc/go_for_cpp_programmers.html b/doc/go_for_cpp_programmers.html index 7edb88013f..8e215190fa 100644 --- a/doc/go_for_cpp_programmers.html +++ b/doc/go_for_cpp_programmers.html @@ -225,7 +225,7 @@ f(v9.i, p9.i)
-Go does not require parentheses around the condition of a if
+Go does not require parentheses around the condition of an if
statement, or the expressions of a for statement, or the value of a
switch statement. On the other hand, it does require curly braces
around the body of an if or for statement.
@@ -538,7 +538,7 @@ func f2() {
The set method is effectively inherited from
-myChildType, because
+myType, because
methods associated with the anonymous field are promoted to become methods
of the enclosing type. In this case, because myChildType has an
anonymous field of type myType, the methods of