fixed samples: wrong ?? operator to supported elvis ?:
This commit is contained in:
1 parent
338dc00573
commit
8b94432f66
3 files changed
+37
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user