mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[gardening] Fix a vs an typos.
This commit is contained in:
@@ -22,8 +22,8 @@ Swift 3.1
|
|||||||
|
|
||||||
* [SE-0080][]:
|
* [SE-0080][]:
|
||||||
|
|
||||||
Adds a new family of conversion initializers to all numeric types that
|
Adds a new family of conversion initializers to all numeric types that
|
||||||
either complete successfully without loss of information or return nil.
|
either complete successfully without loss of information or return nil.
|
||||||
|
|
||||||
* Swift will now warn when an `NSObject` subclass attempts to override the
|
* Swift will now warn when an `NSObject` subclass attempts to override the
|
||||||
class `initialize` method. Swift doesn't guarantee that references to class
|
class `initialize` method. Swift doesn't guarantee that references to class
|
||||||
@@ -49,7 +49,7 @@ Swift 3.1
|
|||||||
the compiler will prevent them from being used in the first place.
|
the compiler will prevent them from being used in the first place.
|
||||||
|
|
||||||
* Indirect fields from C structures and unions are now always imported, while
|
* Indirect fields from C structures and unions are now always imported, while
|
||||||
they previously weren't imported if they belonged to an union. This is done by
|
they previously weren't imported if they belonged to a union. This is done by
|
||||||
naming anonymous fields. For example:
|
naming anonymous fields. For example:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
@@ -83,7 +83,7 @@ Swift 3.1
|
|||||||
|
|
||||||
* The `withoutActuallyEscaping` function from [SE-0103][] has been implemented.
|
* The `withoutActuallyEscaping` function from [SE-0103][] has been implemented.
|
||||||
To pass off a non-escaping closure to an API that formally takes an
|
To pass off a non-escaping closure to an API that formally takes an
|
||||||
`@escaping` closure, but which is used in a way that will not in fact
|
`@escaping` closure, but which is used in a way that will not in fact
|
||||||
escape it in practice, use `withoutActuallyEscaping` to get an escapable
|
escape it in practice, use `withoutActuallyEscaping` to get an escapable
|
||||||
copy of the closure and delimit its expected lifetime. For example:
|
copy of the closure and delimit its expected lifetime. For example:
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
#define UNCHECKED_EXPR(Id, Parent) EXPR(Id, Parent)
|
#define UNCHECKED_EXPR(Id, Parent) EXPR(Id, Parent)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// An literal expression node represents a literal value, such as a number,
|
/// A literal expression node represents a literal value, such as a number,
|
||||||
/// boolean, string, etc.
|
/// boolean, string, etc.
|
||||||
///
|
///
|
||||||
/// By default, these are treated like any other expression.
|
/// By default, these are treated like any other expression.
|
||||||
|
|||||||
@@ -1157,7 +1157,7 @@ bool EscapeAnalysis::buildConnectionGraphForDestructor(
|
|||||||
// The object is local, but we cannot determine its type.
|
// The object is local, but we cannot determine its type.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// If Ty is a an optional, its deallocation is equivalent to the deallocation
|
// If Ty is an optional, its deallocation is equivalent to the deallocation
|
||||||
// of its payload.
|
// of its payload.
|
||||||
// TODO: Generalize it. Destructor of an aggregate type is equivalent to calling
|
// TODO: Generalize it. Destructor of an aggregate type is equivalent to calling
|
||||||
// destructors for its components.
|
// destructors for its components.
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ public:
|
|||||||
if (programHeaders == nullptr) {
|
if (programHeaders == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// If a interpreter is set in the program headers then this is a
|
// If an interpreter is set in the program headers then this is a
|
||||||
// dynamic executable and therefore not valid.
|
// dynamic executable and therefore not valid.
|
||||||
for (size_t idx = 0; idx < elfHeader.e_phnum; idx++) {
|
for (size_t idx = 0; idx < elfHeader.e_phnum; idx++) {
|
||||||
if (programHeaders[idx].p_type == PT_INTERP) {
|
if (programHeaders[idx].p_type == PT_INTERP) {
|
||||||
|
|||||||
Reference in New Issue
Block a user