Skip to content

Commit

Permalink
Merge pull request #3040 from ivan-mashonskiy/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
Philippus committed Jul 4, 2024
2 parents 887ee39 + 95b599d commit 178372b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _overviews/collections-2.13/maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Mutable maps support in addition the operations summarized in the following tabl
| **Additions and Updates:** | |
| `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`.|
| `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.|
| `ms.addAll(xvs)`<br>or `ms ++= kvs` |Adds all mappings in `kvs` to `ms` as a side effect and returns `ms` itself.|
| `ms.addAll(kvs)`<br>or `ms ++= kvs` |Adds all mappings in `kvs` to `ms` as a side effect and returns `ms` itself.|
| `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.|
| `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`.|
| **Removals:** | |
Expand Down
2 changes: 1 addition & 1 deletion _overviews/collections-2.13/seqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Two often used implementations of buffers are `ListBuffer` and `ArrayBuffer`. A
| ------ | ------ |
| **Additions:** | |
| `buf.append(x)`<br>or `buf += x` |Appends element `x` to buffer, and returns `buf` itself as result.|
| `buf.appendAll(xs)`<br>or`buf ++= xs` |Appends all elements in `xs` to buffer.|
| `buf.appendAll(xs)`<br>or `buf ++= xs` |Appends all elements in `xs` to buffer.|
| `buf.prepend(x)`<br>or `x +=: buf` |Prepends element `x` to buffer.|
| `buf.prependAll(xs)`<br>or `xs ++=: buf` |Prepends all elements in `xs` to buffer.|
| `buf.insert(i, x)` |Inserts element `x` at index `i` in buffer.|
Expand Down

0 comments on commit 178372b

Please sign in to comment.