File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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
3841Swift 5.0
3942---------
You can’t perform that action at this time.
0 commit comments