diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-12-04 17:41:14 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-12-04 17:41:14 +0100 |
commit | 78400a1d74a44fca33d04f9d9aa68a878d286cc2 (patch) | |
tree | 7d88843b5d5ce2aa7b5271f8d8aba8f0f0bbc16c /src/library | |
parent | 7e803663645d99ba6f35bb3c71da97c59ae97cc3 (diff) | |
parent | 3f48391ce5972bdd5813eae661a1dceede5ce5f4 (diff) | |
download | scala-78400a1d74a44fca33d04f9d9aa68a878d286cc2.tar.gz scala-78400a1d74a44fca33d04f9d9aa68a878d286cc2.tar.bz2 scala-78400a1d74a44fca33d04f9d9aa68a878d286cc2.zip |
Merge pull request #4142 from Ichoran/issue/8783
SI-8783 MultiMap documentation for addBinding is incorrect
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/mutable/MultiMap.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/library/scala/collection/mutable/MultiMap.scala b/src/library/scala/collection/mutable/MultiMap.scala index 78dfc35268..ac2ebf31d8 100644 --- a/src/library/scala/collection/mutable/MultiMap.scala +++ b/src/library/scala/collection/mutable/MultiMap.scala @@ -65,10 +65,9 @@ trait MultiMap[A, B] extends Map[A, Set[B]] { */ protected def makeSet: Set[B] = new HashSet[B] - /** Assigns the specified `value` to a specified `key`, replacing - * the existing value assigned to that `key` if it is equal to - * the specified value. Otherwise, simply adds another binding to - * the `key`. + /** Assigns the specified `value` to a specified `key`. If the key + * already has a binding to equal to `value`, nothing is changed; + * otherwise a new binding is added for that `key`. * * @param key The key to which to bind the new value. * @param value The value to bind to the key. |