Skip to content

Commit c3567b4

Browse files
authored
Add an actual value to the variable
1 parent b0e9e74 commit c3567b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
1111
shadows the existing declaration. For example, the following:
1212

1313
```swift
14-
let foo: String?
14+
let foo: String? = "hello world"
1515

1616
if let foo {
17-
print(foo)
17+
print(foo) // prints "hello world"
1818
}
1919
```
2020

2121
is equivalent to:
2222

2323
```swift
24-
let foo: String?
24+
let foo: String? = "hello world"
2525

2626
if let foo = foo {
27-
print(foo)
27+
print(foo) // prints "hello world"
2828
}
2929
```
3030

0 commit comments

Comments
 (0)