From 00c2b684fd251dbbf201292ee42bb0a34a5f6418 Mon Sep 17 00:00:00 2001 From: Alex Roussos Date: Wed, 17 Jun 2015 19:10:10 -0400 Subject: [PATCH] Fix documentation for Sets intersect() and subtract() Adds correct documentation for the Sets intersect() and subtract() methods, which had been copied from union(). --- libraries/tools/kotlin-stdlib-gen/src/templates/Sets.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { """