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
@@ -94,7 +94,7 @@ m += "c" => 3
val [first, middle..., last] = [1, 2, 3, 4, 5]
// Safe Navigation and Elvis
val companyName = person?.job?.company?.name ?? "Freelancer"
val companyName = person?.job?.company?.name ?: "Freelancer"
```
## 8. Standard Library Discovery