Fix documentation for Sets intersect() and subtract()
Adds correct documentation for the Sets intersect() and subtract() methods, which had been copied from union().
This commit is contained in:
committed by
Ilya Gorbunov
parent
046189087a
commit
00c2b684fd
@@ -101,7 +101,7 @@ fun sets(): List<GenericFunction> {
|
|||||||
|
|
||||||
templates add f("intersect(other: Iterable<T>)") {
|
templates add f("intersect(other: Iterable<T>)") {
|
||||||
exclude(Strings, Sequences)
|
exclude(Strings, Sequences)
|
||||||
doc { "Returns a set containing all distinct elements from both collections." }
|
doc { "Returns a set containing all elements that are contained by both this set and the specified collection." }
|
||||||
returns("Set<T>")
|
returns("Set<T>")
|
||||||
body {
|
body {
|
||||||
"""
|
"""
|
||||||
@@ -114,7 +114,7 @@ fun sets(): List<GenericFunction> {
|
|||||||
|
|
||||||
templates add f("subtract(other: Iterable<T>)") {
|
templates add f("subtract(other: Iterable<T>)") {
|
||||||
exclude(Strings, Sequences)
|
exclude(Strings, Sequences)
|
||||||
doc { "Returns a set containing all distinct elements from both collections." }
|
doc { "Returns a set containing all elements that are contained by this set and not contained by the specified collection." }
|
||||||
returns("Set<T>")
|
returns("Set<T>")
|
||||||
body {
|
body {
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user