Skip to content

Commit 21e94de

Browse files
committed
Move SE-0365 to Swift 6 section in changelog
1 parent a4fac80 commit 21e94de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CHANGELOG
33

44
_**Note:** This is in reverse chronological order, so newer entries are added to the top._
55

6-
## Swift 5.8
6+
## Swift 6.0
77

88
* [SE-0365][]:
99

@@ -43,7 +43,9 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
4343
}
4444
```
4545

46-
Starting in Swift 6, the above code will no longer compile. `weak self` captures in non-escaping closures will have the same behavior as captures in escaping closures (as described in [SE-0365][]). Code relying on the previous behavior will need to be updated to either unwrap `self` (e.g. by adding a `guard let self else return` statement), or to use a different capture method (e.g. using `[self]` or `[unowned self]` instead of `[weak self]`).
46+
In Swift 6, the above code will no longer compile. `weak self` captures in non-escaping closures now have the same behavior as captures in escaping closures (as described in [SE-0365][]). Code relying on the previous behavior will need to be updated to either unwrap `self` (e.g. by adding a `guard let self else return` statement), or to use a different capture method (e.g. using `[self]` or `[unowned self]` instead of `[weak self]`).
47+
48+
## Swift 5.8
4749

4850
* [SE-0362][]:
4951

0 commit comments

Comments
 (0)