Skip to content

Commit

Permalink
doc/effective_go.html: close some tags.
Browse files Browse the repository at this point in the history
R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/37700043
  • Loading branch information
OlingCat authored and adg committed Dec 10, 2013
1 parent 6ae3780 commit b349477
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/effective_go.html
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ <h3 id="for">For</h3>

<p>
The blank identifier has many uses, as described in <a href="#blank">a later section</a>.
</p>

<p>
For strings, the <code>range</code> does more work for you, breaking out individual
Expand Down Expand Up @@ -2173,6 +2174,7 @@ <h3 id="interface_conversions">Interface conversions and type assertions</h3>
A type assertion takes an interface value and extracts from it a value of the specified explicit type.
The syntax borrows from the clause opening a type switch, but with an explicit
type rather than the <code>type</code> keyword:
</p>

<pre>
value.(typeName)
Expand Down Expand Up @@ -2463,6 +2465,8 @@ <h3 id="blank_assign">The blank identifier in multiple assignment</h3>
<p>
The use of a blank identifier in a <code>for</code> <code>range</code> loop is a
special case of a general situation: multiple assignment.
</p>

<p>
If an assignment requires multiple values on the left side,
but one of the values will not be used by the program,
Expand Down

0 comments on commit b349477

Please sign in to comment.