diff --git a/pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt b/pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt index 4b6d64e3..fa467739 100644 --- a/pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt +++ b/pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt @@ -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 diff --git a/pkl-doc/src/main/kotlin/org/pkl/doc/RuntimeData.kt b/pkl-doc/src/main/kotlin/org/pkl/doc/RuntimeData.kt index 4e60eb35..b326779a 100644 --- a/pkl-doc/src/main/kotlin/org/pkl/doc/RuntimeData.kt +++ b/pkl-doc/src/main/kotlin/org/pkl/doc/RuntimeData.kt @@ -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.distinctByCommparator( + fun Collection.distinctByComparator( comparator: Comparator ): Collection { val compareBySegment = segmentComparator(comparator)