]> Cypherpunks repositories - gostls13.git/commitdiff
doc: use appropriate type to describe return value
authorKevin Burke <kev@inburke.com>
Tue, 21 Feb 2017 19:23:04 +0000 (11:23 -0800)
committerRob Pike <r@golang.org>
Tue, 21 Feb 2017 22:15:26 +0000 (22:15 +0000)
Fixes #19223.

Change-Id: I4cc8e81559a1313e1477ee36902e1b653155a888
Reviewed-on: https://go-review.googlesource.com/37374
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
doc/effective_go.html

index e3f3124631f1450d2062f2747cff57530ac445c3..bbd7f24d483af3a03e7597c20f1e7146679c6859 100644 (file)
@@ -1580,7 +1580,7 @@ if attended[person] { // will be false if person is not in the map
 <p>
 Sometimes you need to distinguish a missing entry from
 a zero value.  Is there an entry for <code>"UTC"</code>
-or is that the empty string because it's not in the map at all?
+or is that 0 because it's not in the map at all?
 You can discriminate with a form of multiple assignment.
 </p>
 <pre>