Skip to content

Commit ea531f2

Browse files
committed
Merge pull request #1693 from Fawxy/patch-1
Grammar and formatting
2 parents 3c64029 + b347868 commit ea531f2

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

CHANGELOG.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Swift 3
2+
Swift 3.0
33
-------
44

55
* Renamification landed, so the Clang importer imports ObjC symbols
@@ -18,10 +18,10 @@ Swift 3
1818
```
1919
etc.
2020

21-
* The @noescape attribute has been extended to be a more general type attribute.
22-
You can now declare values of @noescape function type, e.g. in manually
21+
* The `@noescape` attribute has been extended to be a more general type attribute.
22+
You can now declare values of `@noescape` function type, e.g. in manually
2323
curried function signatures. You can now also declare local variables of
24-
@noescape type, and use @noescape in typealiases. For example, this is now
24+
`@noescape` type, and use `@noescape` in `typealiases`. For example, this is now
2525
valid code:
2626

2727
```swift
@@ -32,8 +32,8 @@ Swift 3
3232
```
3333

3434
* [SE-0034](https://github.com/apple/swift-evolution/blob/master/proposals/0034-disambiguating-line.md)
35-
has renamed the #line directive (which resets the logical source location
36-
for diagnostics and debug information) to #sourceLocation.
35+
has renamed the `#line` directive (which resets the logical source location
36+
for diagnostics and debug information) to `#sourceLocation`.
3737

3838
* Curried function syntax has been removed, and now produces a compile-time
3939
error.
@@ -46,7 +46,7 @@ Swift 3
4646
```
4747

4848
* Section markers are created in ELF binaries through special objects during link time.
49-
These objects allow for the deletion of swift.ld and the use of non-BFD linkers.
49+
These objects allow for the deletion of `swift.ld` and the use of non-BFD linkers.
5050
A new argument to swiftc is provided to select the linker used, and the gold linker
5151
is set as the default for arm-based platforms.
5252

@@ -65,22 +65,22 @@ Swift 3
6565
Swift 2.2
6666
---------
6767

68-
* Associated types in protocols can now be specified with a new 'associatedtype'
69-
declaration, to replace the use of 'typealias':
68+
* Associated types in protocols can now be specified with a new `associatedtype`
69+
declaration, to replace the use of `typealias`:
7070

7171
```swift
7272
protocol P {
7373
associatedtype Ty
7474
}
7575
```
7676

77-
The typealias keyword is still allowed (but deprecated and produces a warning)
78-
in Swift 2.2. This warning will become an error in Swift 3.
77+
The `typealias` keyword is still allowed (but deprecated and produces a warning)
78+
in Swift 2.2. This warning will become an error in Swift 3.0.
7979

8080
* Curried function syntax has been deprecated, and is slated to be removed in
81-
Swift 3.
81+
Swift 3.0.
8282

83-
* The ++ and -- operators have been deprecated, and are slated to be removed in
83+
* The `++` and `--` operators have been deprecated, and are slated to be removed in
8484
Swift 3.0. As a replacement, please use `x += 1` on integer or floating point
8585
types, and `x = x.successor()` on Index types.
8686

@@ -94,6 +94,7 @@ Swift 2.2
9494
```
9595

9696
should move to being written as:
97+
9798
```swift
9899
foo(x.0, x.b)
99100
```
@@ -104,7 +105,7 @@ Swift 2.2
104105
* New `#file`, `#line`, `#column`, and `#function` expressions have been introduced to
105106
replace the existing `__FILE__`, `__LINE__`, `__COLUMN__`, and `__FUNCTION__` symbols.
106107
The `__FILE__`-style symbols have been deprecated, and will be removed in
107-
Swift 3.
108+
Swift 3.0.
108109

109110
* The operator identifier lexer grammar has been revised to simplify the rules
110111
for operators that start with a dot ("."). The new rule is that an operator
@@ -156,10 +157,10 @@ Swift 2.2
156157

157158
* Global `anyGenerator()` functions have been changed into initializers on
158159
`AnyGenerator`, making the API more intuitive and idiomatic. They have been
159-
deprecated in Swift 2.2, and will be removed in Swift 3.
160+
deprecated in Swift 2.2, and will be removed in Swift 3.0.
160161

161162
* Closures appearing inside generic types and generic methods can now be
162-
converted to C function pointers as long as no generic type parameters
163+
converted to C function pointers, as long as no generic type parameters
163164
are referenced in the closure's argument list or body. A conversion of
164165
a closure that references generic type parameters now produces a
165166
diagnostic instead of crashing.
@@ -227,7 +228,7 @@ Swift 2.2
227228

228229
```swift
229230
#if swift(>=2.2)
230-
// Only this code will be parsed in Swift 3
231+
// Only this code will be parsed in Swift 3.0
231232
func foo(x: Int) -> (y: Int) -> () {}
232233
#else
233234
// This code is ignored entirely.
@@ -253,9 +254,9 @@ Swift 2.2
253254

254255
Generally, such string literals should be replaced with uses of
255256
`#selector`, and the compiler will provide Fix-Its that use
256-
`#selector`. In cases where they is not possible (e.g., when referring
257+
`#selector`. In cases where this is not possible (e.g., when referring
257258
to the getter of a property), one can still directly construct
258-
selectors, e.g.,:
259+
selectors, e.g.:
259260

260261
```swift
261262
let sel = Selector("propertyName")
@@ -335,7 +336,7 @@ Swift 2.2
335336
variable of type `String -> Any`. **(19517003)**
336337

337338

338-
2015-09-17 [Xcode 7.0, Swift 2]
339+
2015-09-17 [Xcode 7.0, Swift 2.0]
339340
----------
340341

341342
## Swift Language Features

0 commit comments

Comments
 (0)