Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
14d7e869
Commit
14d7e869
authored
Jan 20, 2012
by
Stefan Nilsson
Committed by
Ian Lance Taylor
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: fix typo in Go for C++ programmers
R=iant CC=golang-dev
https://golang.org/cl/5555062
parent
0a1376a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/go_for_cpp_programmers.html
doc/go_for_cpp_programmers.html
+2
-2
No files found.
doc/go_for_cpp_programmers.html
View file @
14d7e869
...
...
@@ -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 a
n
<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>
my
Child
Type
</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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment