fixed samples: wrong ?? operator to supported elvis ?:

This commit is contained in:
sergeych committed 2026-01-18 20:28:03 +03:00
1 parent 338dc00573
commit 8b94432f66
3 files changed
+37 -2

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ fun HomePage() {
var config = null
config ?= { timeout: 30 } // Assign only if null
val timeout = config?.timeout ?? 60
val timeout = config?.timeout ?: 60
println("Timeout is: " + timeout)
""".trimIndent(),
"""