Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos of the phrase "pair of" missing the article "a" in KDocs #5251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -57,7 +57,7 @@ public class BitSet(size: Int = ELEMENT_SIZE) {
private val Int.bitOffset: Int
get() = this % ELEMENT_SIZE

// Transforms a bit index in the set into pair of a `bits` element index and a bit index in the element.
// Transforms a bit index in the set into a pair of a `bits` element index and a bit index in the element.
private val Int.asBitCoordinates: Pair<Int, Int>
get() = Pair(elementIndex, bitOffset)

Expand Down
18 changes: 9 additions & 9 deletions libraries/stdlib/common/src/generated/_Arrays.kt
Expand Up @@ -22700,7 +22700,7 @@ public fun <T : Any> Array<T?>.requireNoNulls(): Array<T> {
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22720,7 +22720,7 @@ public inline fun <T> Array<out T>.partition(predicate: (T) -> Boolean): Pair<Li
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22740,7 +22740,7 @@ public inline fun ByteArray.partition(predicate: (Byte) -> Boolean): Pair<List<B
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22760,7 +22760,7 @@ public inline fun ShortArray.partition(predicate: (Short) -> Boolean): Pair<List
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22780,7 +22780,7 @@ public inline fun IntArray.partition(predicate: (Int) -> Boolean): Pair<List<Int
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22800,7 +22800,7 @@ public inline fun LongArray.partition(predicate: (Long) -> Boolean): Pair<List<L
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22820,7 +22820,7 @@ public inline fun FloatArray.partition(predicate: (Float) -> Boolean): Pair<List
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22840,7 +22840,7 @@ public inline fun DoubleArray.partition(predicate: (Double) -> Boolean): Pair<Li
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand All @@ -22860,7 +22860,7 @@ public inline fun BooleanArray.partition(predicate: (Boolean) -> Boolean): Pair<
}

/**
* Splits the original array into pair of lists,
* Splits the original array into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand Down
2 changes: 1 addition & 1 deletion libraries/stdlib/common/src/generated/_Collections.kt
Expand Up @@ -3173,7 +3173,7 @@ public inline fun <T> Iterable<T>.minusElement(element: T): List<T> {
}

/**
* Splits the original collection into pair of lists,
* Splits the original collection into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand Down
2 changes: 1 addition & 1 deletion libraries/stdlib/common/src/generated/_Sequences.kt
Expand Up @@ -2691,7 +2691,7 @@ public inline fun <T> Sequence<T>.minusElement(element: T): Sequence<T> {
}

/**
* Splits the original sequence into pair of lists,
* Splits the original sequence into a pair of lists,
* where *first* list contains elements for which [predicate] yielded `true`,
* while *second* list contains elements for which [predicate] yielded `false`.
*
Expand Down
4 changes: 2 additions & 2 deletions libraries/stdlib/common/src/generated/_Strings.kt
Expand Up @@ -2264,7 +2264,7 @@ public fun <R> CharSequence.chunkedSequence(size: Int, transform: (CharSequence)
}

/**
* Splits the original char sequence into pair of char sequences,
* Splits the original char sequence into a pair of char sequences,
* where *first* char sequence contains characters for which [predicate] yielded `true`,
* while *second* char sequence contains characters for which [predicate] yielded `false`.
*
Expand All @@ -2284,7 +2284,7 @@ public inline fun CharSequence.partition(predicate: (Char) -> Boolean): Pair<Cha
}

/**
* Splits the original string into pair of strings,
* Splits the original string into a pair of strings,
* where *first* string contains characters for which [predicate] yielded `true`,
* while *second* string contains characters for which [predicate] yielded `false`.
*
Expand Down
2 changes: 1 addition & 1 deletion libraries/stdlib/wasm/src/kotlin/text/regex/BitSet.kt
Expand Up @@ -44,7 +44,7 @@ internal class BitSet constructor(size: Int = ELEMENT_SIZE) {
private val Int.bitOffset: Int
get() = this % ELEMENT_SIZE

// Transforms a bit index in the set into pair of a `bits` element index and a bit index in the element.
// Transforms a bit index in the set into a pair of a `bits` element index and a bit index in the element.
private val Int.asBitCoordinates: Pair<Int, Int>
get() = Pair(elementIndex, bitOffset)

Expand Down
4 changes: 2 additions & 2 deletions libraries/tools/kotlin-stdlib-gen/src/templates/Generators.kt
Expand Up @@ -558,7 +558,7 @@ object Generators : TemplateGroupBase() {

doc {
"""
Splits the original ${f.collection} into pair of lists,
Splits the original ${f.collection} into a pair of lists,
where *first* list contains elements for which [predicate] yielded `true`,
while *second* list contains elements for which [predicate] yielded `false`.
"""
Expand Down Expand Up @@ -589,7 +589,7 @@ object Generators : TemplateGroupBase() {
specialFor(CharSequences, Strings) {
doc {
"""
Splits the original ${f.collection} into pair of ${f.collection}s,
Splits the original ${f.collection} into a pair of ${f.collection}s,
where *first* ${f.collection} contains characters for which [predicate] yielded `true`,
while *second* ${f.collection} contains characters for which [predicate] yielded `false`.
"""
Expand Down