Skip to content

Commit

Permalink
[gardening] Fix a vs an typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Jan 21, 2017
1 parent b0637c3 commit 95e47ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Swift 3.1

* [SE-0080][]:

Adds a new family of conversion initializers to all numeric types that
either complete successfully without loss of information or return nil.
Adds a new family of conversion initializers to all numeric types that
either complete successfully without loss of information or return nil.

* Swift will now warn when an `NSObject` subclass attempts to override the
class `initialize` method. Swift doesn't guarantee that references to class
Expand All @@ -49,7 +49,7 @@ Swift 3.1
the compiler will prevent them from being used in the first place.

* 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:

```c
Expand Down Expand Up @@ -83,7 +83,7 @@ Swift 3.1

* The `withoutActuallyEscaping` function from [SE-0103][] has been implemented.
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
copy of the closure and delimit its expected lifetime. For example:

Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/ExprNodes.def
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#define UNCHECKED_EXPR(Id, Parent) EXPR(Id, Parent)
#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.
///
/// By default, these are treated like any other expression.
Expand Down
2 changes: 1 addition & 1 deletion lib/SILOptimizer/Analysis/EscapeAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ bool EscapeAnalysis::buildConnectionGraphForDestructor(
// The object is local, but we cannot determine its type.
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.
// TODO: Generalize it. Destructor of an aggregate type is equivalent to calling
// destructors for its components.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/runtime/StaticBinaryELF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class StaticBinaryELF {
if (programHeaders == nullptr) {
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.
for (size_t idx = 0; idx < elfHeader.e_phnum; idx++) {
if (programHeaders[idx].p_type == PT_INTERP) {
Expand Down

0 comments on commit 95e47ec

Please sign in to comment.