Skip to content

Commit 071866a

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents 9142644 + 83b29b7 commit 071866a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
| Contents |
88
| :--------------------- |
9+
| [Swift 5.1](#swift-51) |
910
| [Swift 5.0](#swift-50) |
1011
| [Swift 4.2](#swift-42) |
1112
| [Swift 4.1](#swift-41) |
@@ -29,11 +30,13 @@ Swift 5.1
2930
* Single-parameter functions accepting values of type `Any` are no
3031
longer preferred over other functions.
3132

32-
```swift
33-
func foo(_: Any) { print("Any") }
34-
func foo<T>(_: T) { print("T") }
35-
foo(0) // prints "Any" in Swift < 5.1, "T" in Swift 5.1
36-
```
33+
```swift
34+
func foo(_: Any) { print("Any") }
35+
func foo<T>(_: T) { print("T") }
36+
foo(0) // prints "Any" in Swift < 5.1, "T" in Swift 5.1
37+
```
38+
39+
**Add new entries to the top of this section, not here!**
3740

3841
Swift 5.0
3942
---------

0 commit comments

Comments
 (0)