mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
Fix typos (#1242)
This commit is contained in:
@@ -107,7 +107,7 @@ class DocGenerator(
|
||||
}
|
||||
|
||||
/**
|
||||
* The default exeuctor when running the doc generator.
|
||||
* The default executor when running the doc generator.
|
||||
*
|
||||
* Uses [Executors.newVirtualThreadPerTaskExecutor] if available (JDK 21). Otherwise, uses
|
||||
* [Executors.newFixedThreadPool] with 64 threads, or the number of available processors
|
||||
|
||||
@@ -110,7 +110,7 @@ internal data class RuntimeData(
|
||||
RuntimeDataLink(text = text(ref), href = ref.pageUrlRelativeTo(myRef))
|
||||
}
|
||||
val knownUsages =
|
||||
(this.knownUsages + newLinks).distinctByCommparator(comparator).sortedBy { it.text }.toSet()
|
||||
(this.knownUsages + newLinks).distinctByComparator(comparator).sortedBy { it.text }.toSet()
|
||||
if (knownUsages == this.knownUsages) {
|
||||
return this
|
||||
}
|
||||
@@ -128,14 +128,14 @@ internal data class RuntimeData(
|
||||
RuntimeDataLink(text = ref.displayName, href = ref.pageUrlRelativeTo(myRef))
|
||||
}
|
||||
val knownSubtypes =
|
||||
(this.knownSubtypes + newLinks).distinctByCommparator(comparator).sortedBy { it.text }.toSet()
|
||||
(this.knownSubtypes + newLinks).distinctByComparator(comparator).sortedBy { it.text }.toSet()
|
||||
if (knownSubtypes == this.knownSubtypes) {
|
||||
return this
|
||||
}
|
||||
return copy(knownSubtypes = knownSubtypes)
|
||||
}
|
||||
|
||||
fun Collection<RuntimeDataLink>.distinctByCommparator(
|
||||
fun Collection<RuntimeDataLink>.distinctByComparator(
|
||||
comparator: Comparator<String>
|
||||
): Collection<RuntimeDataLink> {
|
||||
val compareBySegment = segmentComparator(comparator)
|
||||
|
||||
Reference in New Issue
Block a user