StdLib Generators: fix type projections, do not use concat.

This commit is contained in:
Ilya Gorbunov
2016-01-22 20:43:48 +03:00
parent 714df7b433
commit 13b1e91eb5
2 changed files with 2 additions and 2 deletions
@@ -32,6 +32,6 @@ object DocExtensions {
else -> this + "s"
}
fun String.prefixWithArticle() = (if ("aeiou".any { this.startsWith(it, ignoreCase = true) }) "an " else "a ").concat(this)
fun String.prefixWithArticle() = (if ("aeiou".any { this.startsWith(it, ignoreCase = true) }) "an " else "a ") + this
}
@@ -325,7 +325,7 @@ class GenericFunction(val signature: String, val keyword: String = "fun") {
.drop(1)
.takeWhile { it != '>' }
.split(",")
.map { it.removePrefix("out").removePrefix("in").trim() }
.map { it.trim().removePrefix("out").removePrefix("in").trim() }
// TODO: Model for type parameter
val types = ArrayList(typeParams)