Skip to content

Commit 865a75d

Browse files
ShreckYeSpace Team
authored and
Space Team
committed
Fix some typos of the phrase "pair of" missing the article "a" in KDocs
GH PR: JetBrains#5251 Merge-request: KT-MR-19204 Merged-by: Filipp Zhinkin <[email protected]>
1 parent 9718c59 commit 865a75d

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

kotlin-native/runtime/src/main/kotlin/kotlin/native/BitSet.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ actual constructor(size: Int = ELEMENT_SIZE) {
6060
private val Int.bitOffset: Int
6161
get() = this % ELEMENT_SIZE
6262

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

libraries/stdlib/common/src/generated/_Arrays.kt

+9-9
Original file line numberDiff line numberDiff line change
@@ -22811,7 +22811,7 @@ public fun <T : Any> Array<T?>.requireNoNulls(): Array<T> {
2281122811
}
2281222812

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

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

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

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

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

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

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

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

2297322973
/**
22974-
* Splits the original array into pair of lists,
22974+
* Splits the original array into a pair of lists,
2297522975
* where *first* list contains elements for which [predicate] yielded `true`,
2297622976
* while *second* list contains elements for which [predicate] yielded `false`.
2297722977
*

libraries/stdlib/common/src/generated/_Collections.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3183,7 +3183,7 @@ public inline fun <T> Iterable<T>.minusElement(element: T): List<T> {
31833183
}
31843184

31853185
/**
3186-
* Splits the original collection into pair of lists,
3186+
* Splits the original collection into a pair of lists,
31873187
* where *first* list contains elements for which [predicate] yielded `true`,
31883188
* while *second* list contains elements for which [predicate] yielded `false`.
31893189
*

libraries/stdlib/common/src/generated/_Sequences.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2695,7 +2695,7 @@ public inline fun <T> Sequence<T>.minusElement(element: T): Sequence<T> {
26952695
}
26962696

26972697
/**
2698-
* Splits the original sequence into pair of lists,
2698+
* Splits the original sequence into a pair of lists,
26992699
* where *first* list contains elements for which [predicate] yielded `true`,
27002700
* while *second* list contains elements for which [predicate] yielded `false`.
27012701
*

libraries/stdlib/common/src/generated/_Strings.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ public fun <R> CharSequence.chunkedSequence(size: Int, transform: (CharSequence)
22712271
}
22722272

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

22932293
/**
2294-
* Splits the original string into pair of strings,
2294+
* Splits the original string into a pair of strings,
22952295
* where *first* string contains characters for which [predicate] yielded `true`,
22962296
* while *second* string contains characters for which [predicate] yielded `false`.
22972297
*

libraries/stdlib/wasm/src/kotlin/text/regex/BitSet.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ actual constructor(size: Int = ELEMENT_SIZE) {
4747
private val Int.bitOffset: Int
4848
get() = this % ELEMENT_SIZE
4949

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

libraries/tools/kotlin-stdlib-gen/src/templates/Generators.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ object Generators : TemplateGroupBase() {
558558

559559
doc {
560560
"""
561-
Splits the original ${f.collection} into pair of lists,
561+
Splits the original ${f.collection} into a pair of lists,
562562
where *first* list contains elements for which [predicate] yielded `true`,
563563
while *second* list contains elements for which [predicate] yielded `false`.
564564
"""
@@ -589,7 +589,7 @@ object Generators : TemplateGroupBase() {
589589
specialFor(CharSequences, Strings) {
590590
doc {
591591
"""
592-
Splits the original ${f.collection} into pair of ${f.collection}s,
592+
Splits the original ${f.collection} into a pair of ${f.collection}s,
593593
where *first* ${f.collection} contains characters for which [predicate] yielded `true`,
594594
while *second* ${f.collection} contains characters for which [predicate] yielded `false`.
595595
"""

0 commit comments

Comments
 (0)