You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/collections-2.13/maps.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Mutable maps support in addition the operations summarized in the following tabl
64
64
|**Additions and Updates:**||
65
65
|`ms(k) = v`|(Or, written out, `ms.update(k, v)`). Adds mapping from key `k` to value `v` to map ms as a side effect, overwriting any previous mapping of `k`.|
66
66
|`ms.addOne(k -> v)`<br>or `ms += (k -> v)`|Adds mapping from key `k` to value `v` to map `ms` as a side effect and returns `ms` itself.|
67
-
|`ms.addAll(xvs)`<br>or `ms ++= kvs`|Adds all mappings in `kvs` to `ms` as a side effect and returns `ms` itself.|
67
+
|`ms.addAll(kvs)`<br>or `ms ++= kvs`|Adds all mappings in `kvs` to `ms` as a side effect and returns `ms` itself.|
68
68
|`ms.put(k, v)`|Adds mapping from key `k` to value `v` to `ms` and returns any value previously associated with `k` as an option.|
69
69
|`ms.getOrElseUpdate(k, d)`|If key `k` is defined in map `ms`, return its associated value. Otherwise, update `ms` with the mapping `k -> d` and return `d`.|
0 commit comments