@@ -62,7 +62,7 @@ this method are implied.
62
62
63
63
* Strip ` Type ` suffix from protocol names.
64
64
65
- ``` swift
65
+ ``` diff
66
66
- public protocol CollectionType : ... { ... }
67
67
+ public protocol Collection : ... { ... }
68
68
@@ -75,7 +75,7 @@ this method are implied.
75
75
76
76
* The concept of ` generator ` is renamed to ` iterator ` across all APIs.
77
77
78
- ``` swift
78
+ ``` diff
79
79
public protocol Collection : ... {
80
80
- typealias Generator : GeneratorType = IndexingGenerator<Self>
81
81
+ typealias Iterator : IteratorProtocol = DefaultCollectionIterator<Self>
@@ -91,13 +91,13 @@ this method are implied.
91
91
* The type ` Bit ` , which was only used as the index for ` CollectionOfOne ` , was
92
92
removed. We recommend using ` Int ` instead.
93
93
94
- ``` swift
94
+ ``` diff
95
95
- public enum Bit : ... { ... }
96
96
```
97
97
98
98
* ` PermutationGenerator ` was removed.
99
99
100
- ``` swift
100
+ ``` diff
101
101
- public struct PermutationGenerator<
102
102
- C : CollectionType, Indices: SequenceType
103
103
- where C.Index == Indices.Generator.Element
@@ -107,7 +107,7 @@ this method are implied.
107
107
* ` MutableSliceable ` was removed. Use `CollectionType where SubSequence :
108
108
MutableCollectionType` instead.
109
109
110
- ``` swift
110
+ ``` diff
111
111
- public protocol MutableSliceable : CollectionType, MutableCollectionType {
112
112
- subscript(_: Range<Index>) -> SubSequence { get set }
113
113
- }
@@ -119,7 +119,7 @@ this method are implied.
119
119
* No-argument initializers were removed from unsafe pointer types. We
120
120
recommend using the ` nil ` literal instead.
121
121
122
- ``` swift
122
+ ``` diff
123
123
public struct AutoreleasingUnsafeMutablePointer<
124
124
- Memory
125
125
+ Pointee
@@ -150,7 +150,7 @@ this method are implied.
150
150
151
151
* ` sort() ` => ` sorted() ` , ` sortInPlace() ` => ` sort() ` .
152
152
153
- ```swift
153
+ ``` diff
154
154
extension Sequence where Self.Generator.Element : Comparable {
155
155
@warn_unused_result
156
156
- public func sort() -> [Generator.Element]
@@ -199,7 +199,7 @@ extension MutableCollection {
199
199
200
200
* Miscellaneous changes.
201
201
202
- ```swift
202
+ ``` diff
203
203
- public struct EnumerateGenerator<Base : GeneratorType> : ... {
204
204
+ public struct EnumeratedIterator<Base : IteratorProtocol> : ... {
205
205
0 commit comments