Permalink
Browse files

Add missing word

  • Loading branch information...
1 parent 310c3f6 commit 7f27da9e7a0de246c8eaa32cf36abf701a93017e @mmcgrana committed Jan 10, 2015
Showing with 10 additions and 11 deletions.
  1. +3 −2 examples/maps/maps.go
  2. +2 −2 examples/maps/maps.hash
  3. +5 −7 public/maps
View
5 examples/maps/maps.go
@@ -37,8 +37,9 @@ func main() {
// value from a map indicates if the key was present
// in the map. This can be used to disambiguate
// between missing keys and keys with zero values
- // like `0` or `""`. Here we didn't the value itself, so
- // we ignored it with the _blank identifier_ `_`.
+ // like `0` or `""`. Here we didn't need the value
+ // itself, so we ignored it with the _blank identifier_
+ // `_`.
_, prs := m["k2"]
fmt.Println("prs:", prs)
View
4 examples/maps/maps.hash
@@ -1,2 +1,2 @@
-ee96724fc32ee253ba2a5390d66d6880d7fdd28f
-Z2ORjMdW_u
+2895d63b87f88ab374256c12dd1539cf7b070b77
+E6cGoiKqka
View
12 public/maps
@@ -40,7 +40,7 @@
</td>
<td class="code leading">
- <a href="http://play.golang.org/p/Z2ORjMdW_u"><img title="Run code" src="play.png" class="run" /></a>
+ <a href="http://play.golang.org/p/E6cGoiKqka"><img title="Run code" src="play.png" class="run" /></a>
<div class="highlight"><pre><span class="kn">package</span> <span class="nx">main</span>
</pre></div>
@@ -159,15 +159,13 @@ a map.</p>
<tr>
<td class="docs">
- <p> Above we didn&rsquo;t
-need the index, so we ignored it with the
-<em>blank identifier</em> <code>_</code>.
-The optional second return value when getting a
+ <p>The optional second return value when getting a
value from a map indicates if the key was present
in the map. This can be used to disambiguate
between missing keys and keys with zero values
-like <code>0</code> or <code>&quot;&quot;</code>. Here we didn&rsquo;t the value itself, so
-we ignored it with the <em>blank identifier</em> <code>_</code>.</p>
+like <code>0</code> or <code>&quot;&quot;</code>. Here we didn&rsquo;t need the value
+itself, so we ignored it with the <em>blank identifier</em>
+<code>_</code>.</p>
</td>
<td class="code leading">

1 comment on commit 7f27da9

@mmcgrana
Owner

Ref #86 for papertrail.

Please sign in to comment.