diff --git a/doc/go_spec.html b/doc/go_spec.html index 9232eb0f8a..bb76134248 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1453,9 +1453,9 @@ components have identical types. In detail: Non-exported method names from different packages are always different. The order of the methods is irrelevant. -
  • Two map types are identical if they have identical key and value types.
  • +
  • Two map types are identical if they have identical key and element types.
  • -
  • Two channel types are identical if they have identical value types and +
  • Two channel types are identical if they have identical element types and the same direction.
  • @@ -3033,11 +3033,11 @@ For a of map type M: assignable to the key type of M
  • if the map contains an entry with key x, - a[x] is the map value with key x - and the type of a[x] is the value type of M
  • + a[x] is the map element with key x + and the type of a[x] is the element type of M
  • if the map is nil or does not contain such an entry, a[x] is the zero value - for the value type of M
  • + for the element type of M

    @@ -5122,7 +5122,7 @@ for i, s := range a { } var key string -var val interface {} // value type of m is assignable to val +var val interface {} // element type of m is assignable to val m := map[string]int{"mon":0, "tue":1, "wed":2, "thu":3, "fri":4, "sat":5, "sun":6} for key, val = range m { h(key, val)