From ed962417b73935417358e1471d015666510e66e4 Mon Sep 17 00:00:00 2001 From: Veronica Ray Date: Wed, 7 Jan 2015 22:03:32 -0800 Subject: [PATCH] Response to PR feedback --- examples/maps/maps.go | 3 ++- examples/maps/maps.hash | 4 ++-- examples/range/range.go | 2 +- examples/range/range.hash | 4 ++-- public/maps | 5 +++-- public/range | 4 ++-- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/examples/maps/maps.go b/examples/maps/maps.go index ae77f97..a4df86c 100644 --- a/examples/maps/maps.go +++ b/examples/maps/maps.go @@ -37,7 +37,8 @@ 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 `""`. + // like `0` or `""`. Here we didn't the value itself, so + // we ignored it with the _blank identifier_ `_`. _, prs := m["k2"] fmt.Println("prs:", prs) diff --git a/examples/maps/maps.hash b/examples/maps/maps.hash index 34d7452..5b6867c 100644 --- a/examples/maps/maps.hash +++ b/examples/maps/maps.hash @@ -1,2 +1,2 @@ -572365c80895f32241032397bd69094886892d90 -D-F9YN_V8r +ee96724fc32ee253ba2a5390d66d6880d7fdd28f +Z2ORjMdW_u diff --git a/examples/range/range.go b/examples/range/range.go index b23d7eb..4f845f4 100644 --- a/examples/range/range.go +++ b/examples/range/range.go @@ -20,7 +20,7 @@ func main() { // `range` on arrays and slices provides both the // index and value for each entry. Above we didn't // need the index, so we ignored it with the - // _blank identifier_ `_`. Sometimes we actually want + // blank identifier `_`. Sometimes we actually want // the indexes though. for i, num := range nums { if num == 3 { diff --git a/examples/range/range.hash b/examples/range/range.hash index 6c3be57..88a60e9 100644 --- a/examples/range/range.hash +++ b/examples/range/range.hash @@ -1,2 +1,2 @@ -e6458150862a6b26e95629ba6a90a6a3036d7d52 -Ys3V-ohVRy +67d7882d364517608741e4045aa10ba489b37987 +u2yg3m1eFT diff --git a/public/maps b/public/maps index 399dc0f..a3b5a66 100644 --- a/public/maps +++ b/public/maps @@ -40,7 +40,7 @@ - +
package main
 
@@ -166,7 +166,8 @@ 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 0 or "".

+like 0 or "". Here we didn’t the value itself, so +we ignored it with the blank identifier _.

diff --git a/public/range b/public/range index 6e056e3..dbeb2a1 100644 --- a/public/range +++ b/public/range @@ -41,7 +41,7 @@ of the data structures we’ve already learned.

- +
package main
 
@@ -96,7 +96,7 @@ Arrays work like this too.

range on arrays and slices provides both the index and value for each entry. Above we didn’t need the index, so we ignored it with the -blank identifier _. Sometimes we actually want +blank identifier _. Sometimes we actually want the indexes though.