From b349477eabbc76fd038f20c69420e70e220397d7 Mon Sep 17 00:00:00 2001 From: Oling Cat Date: Wed, 11 Dec 2013 09:49:28 +1100 Subject: [PATCH] doc/effective_go.html: close some tags. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/37700043 --- doc/effective_go.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/effective_go.html b/doc/effective_go.html index f9199511a31..207bd50c1dc 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -701,6 +701,7 @@ for _, value := range array {

The blank identifier has many uses, as described in a later section. +

For strings, the range does more work for you, breaking out individual @@ -2173,6 +2174,7 @@ A one-case type switch would do, but so would a type assertion. 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 type keyword: +

 value.(typeName)
@@ -2463,6 +2465,8 @@ It has uses beyond those we've seen already.
 

The use of a blank identifier in a for range loop is a special case of a general situation: multiple assignment. +

+

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