1
0
mirror of https://github.com/golang/go synced 2024-11-26 18:16:48 -07:00

doc: use appropriate type to describe return value

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>
This commit is contained in:
Kevin Burke 2017-02-21 11:23:04 -08:00 committed by Rob Pike
parent 6464e5dc4b
commit 7603aa7907

View 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>