diff --git a/doc/effective_go.html b/doc/effective_go.html index edaffd733d1..e3e19bd392d 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1418,13 +1418,13 @@ identifier in place of the usual variable for the value. _, present := timeZone[tz]
-To delete a map entry, turn the multiple assignment around by placing
-an extra boolean on the right; if the boolean is false, the entry
-is deleted. It's safe to do this even if the key is already absent
+To delete a map entry, use the delete
+built-in function, whose arguments are the map and the key to be deleted.
+It's safe to do this this even if the key is already absent
from the map.
-timeZone["PDT"] = 0, false // Now on Standard Time +delete(timeZone, "PDT") // Now on Standard Time
-To delete a map entry, turn the multiple assignment around by placing
-an extra boolean on the right; if the boolean is false, the entry
-is deleted. It's safe to do this even if the key is already absent
+To delete a map entry, use the delete
+built-in function, whose arguments are the map and the key to be deleted.
+It's safe to do this this even if the key is already absent
from the map.
-timeZone["PDT"] = 0, false // Now on Standard Time +delete(timeZone, "PDT") // Now on Standard Time