From 225adfa9fc51385a70dc966449dd40dd420a0f0b Mon Sep 17 00:00:00 2001 From: tursom Date: Thu, 1 Dec 2022 16:17:01 +0800 Subject: [PATCH] fix word --- ts-core/src/main/kotlin/cn/tursom/core/utils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts-core/src/main/kotlin/cn/tursom/core/utils.kt b/ts-core/src/main/kotlin/cn/tursom/core/utils.kt index 9fed7c4..c494678 100644 --- a/ts-core/src/main/kotlin/cn/tursom/core/utils.kt +++ b/ts-core/src/main/kotlin/cn/tursom/core/utils.kt @@ -440,7 +440,7 @@ fun Any.serialize(): ByteArray { } /** - * 使用 condition 做条件判断,如果返回 true 则使用 then 生成结果,否则范湖自身 + * 使用 condition 做条件判断,如果返回 true 则使用 then 生成结果,否则返回自身 */ inline fun T.ifThen(condition: T.() -> Boolean, then: () -> T) = if (condition()) then() else this