diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Sets.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Sets.kt index 5223de46f82..478331bf3a6 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Sets.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Sets.kt @@ -101,7 +101,7 @@ fun sets(): List { templates add f("intersect(other: Iterable)") { 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") body { """ @@ -114,7 +114,7 @@ fun sets(): List { templates add f("subtract(other: Iterable)") { 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") body { """