Skip to content

Commit 57d6124

Browse files
committed
Proposal #6: change Swift syntax highlighting to diff
1 parent 9bb6efe commit 57d6124

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

proposals/0006-apply-api-guidelines-to-the-standard-library.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ this method are implied.
6262

6363
* Strip `Type` suffix from protocol names.
6464

65-
```swift
65+
```diff
6666
-public protocol CollectionType : ... { ... }
6767
+public protocol Collection : ... { ... }
6868

@@ -75,7 +75,7 @@ this method are implied.
7575

7676
* The concept of `generator` is renamed to `iterator` across all APIs.
7777

78-
```swift
78+
```diff
7979
public protocol Collection : ... {
8080
- typealias Generator : GeneratorType = IndexingGenerator<Self>
8181
+ typealias Iterator : IteratorProtocol = DefaultCollectionIterator<Self>
@@ -91,13 +91,13 @@ this method are implied.
9191
* The type `Bit`, which was only used as the index for `CollectionOfOne`, was
9292
removed. We recommend using `Int` instead.
9393

94-
```swift
94+
```diff
9595
-public enum Bit : ... { ... }
9696
```
9797

9898
* `PermutationGenerator` was removed.
9999

100-
```swift
100+
```diff
101101
-public struct PermutationGenerator<
102102
- C : CollectionType, Indices: SequenceType
103103
- where C.Index == Indices.Generator.Element
@@ -107,7 +107,7 @@ this method are implied.
107107
* `MutableSliceable` was removed. Use `CollectionType where SubSequence :
108108
MutableCollectionType` instead.
109109

110-
```swift
110+
```diff
111111
-public protocol MutableSliceable : CollectionType, MutableCollectionType {
112112
- subscript(_: Range<Index>) -> SubSequence { get set }
113113
-}
@@ -119,7 +119,7 @@ this method are implied.
119119
* No-argument initializers were removed from unsafe pointer types. We
120120
recommend using the `nil` literal instead.
121121

122-
```swift
122+
```diff
123123
public struct AutoreleasingUnsafeMutablePointer<
124124
- Memory
125125
+ Pointee
@@ -150,7 +150,7 @@ this method are implied.
150150

151151
* `sort()` => `sorted()`, `sortInPlace()` => `sort()`.
152152

153-
```swift
153+
```diff
154154
extension Sequence where Self.Generator.Element : Comparable {
155155
@warn_unused_result
156156
- public func sort() -> [Generator.Element]
@@ -199,7 +199,7 @@ extension MutableCollection {
199199

200200
* Miscellaneous changes.
201201

202-
```swift
202+
```diff
203203
-public struct EnumerateGenerator<Base : GeneratorType> : ... {
204204
+public struct EnumeratedIterator<Base : IteratorProtocol> : ... {
205205

0 commit comments

Comments
 (0)