From 80a4dc9617265633df3ec3c042f718c1b11c8daf Mon Sep 17 00:00:00 2001 From: Daniel Chao Date: Thu, 16 Oct 2025 14:18:49 -0700 Subject: [PATCH] Fix typos (#1242) --- pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt | 2 +- pkl-doc/src/main/kotlin/org/pkl/doc/RuntimeData.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)