Skip to content

Commit 7e170c7

Browse files
albinekcomjrose-apple
authored andcommitted
Fix syntax highlighting in CHANGELOG (swiftlang#15107)
1 parent 9313aa0 commit 7e170c7

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

CHANGELOG.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,19 @@ Swift 4.1
114114
recursive constraints. For example, the `SubSequence` associated type of
115115
`Sequence` follows the enclosing protocol:
116116

117-
protocol Sequence {
118-
associatedtype Element
119-
associatedtype SubSequence: Sequence
120-
where SubSequence.Element == Element,
121-
SubSequence.SubSequence == SubSequence
122-
// ...
123-
}
117+
```swift
118+
protocol Sequence {
119+
associatedtype Element
120+
associatedtype SubSequence: Sequence
121+
where SubSequence.Element == Element,
122+
SubSequence.SubSequence == SubSequence
123+
// ...
124+
}
124125

125-
protocol Collection: Sequence where Self.SubSequence: Collection {
126-
// ...
127-
}
126+
protocol Collection: Sequence where Self.SubSequence: Collection {
127+
// ...
128+
}
129+
```
128130

129131
As a result, a number of new constraints have been introduced into the
130132
standard library protocols:

0 commit comments

Comments
 (0)