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
6
6
7
7
| Contents |
8
8
| :--------------------- |
9
+ | [ Swift 5.1] ( #swift-51 ) |
9
10
| [ Swift 5.0] ( #swift-50 ) |
10
11
| [ Swift 4.2] ( #swift-42 ) |
11
12
| [ Swift 4.1] ( #swift-41 ) |
@@ -29,11 +30,13 @@ Swift 5.1
29
30
* Single-parameter functions accepting values of type ` Any ` are no
30
31
longer preferred over other functions.
31
32
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!**
37
40
38
41
Swift 5.0
39
42
---------
You can’t perform that action at this time.
0 commit comments