From 14d7e869ebd37d0dbe14c884eb97fec39485aeb0 Mon Sep 17 00:00:00 2001 From: Stefan Nilsson Date: Fri, 20 Jan 2012 14:44:05 -0800 Subject: [PATCH] doc: fix typo in Go for C++ programmers R=iant CC=golang-dev https://golang.org/cl/5555062 --- doc/go_for_cpp_programmers.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/go_for_cpp_programmers.html b/doc/go_for_cpp_programmers.html index 7edb88013f5..8e215190fa5 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