Skip to content

Commit 5869d04

Browse files
committed
Merge pull request #1269 from practicalswift/typo-fixes-20160211
[gardening] Fix recently introduced typos: "for for" → "for", "exmaple" → "example", "requiremens" → "requirements"
2 parents 993d7dd + b914fda commit 5869d04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/SILOptimizer/Analysis/AliasAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace {
3737
void *T1, *T2;
3838
};
3939

40-
/// A key used for for the MemoryBehavior Analysis cache.
40+
/// A key used for the MemoryBehavior Analysis cache.
4141
///
4242
/// The two SILValue pointers are mapped to size_t indices because we need an
4343
/// efficient way to invalidate them (the mechanism is described below). The

test/Prototypes/CollectionsMoveIndices.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
// This design constraint needs some extra motivation, because it
131131
// might not be obvious. Preserving index validity across mutation
132132
// is important for algorithms that iterate over the tree and mutate
133-
// it in place, for exmaple, removing a subrange of elements between
133+
// it in place, for example, removing a subrange of elements between
134134
// two indices, or removing elements that don't satisfy a predicate.
135135
// When implementing such an algorithm, you would typically have an
136136
// index that points to the current element. You can copy the
@@ -141,7 +141,7 @@
141141
// deleted.
142142
//
143143
// It is not possible to satisfy all of these requirements at the same
144-
// time. Designs that cover some of the requiremens are possible.
144+
// time. Designs that cover some of the requirements are possible.
145145
//
146146
// 1. Persistent trees with O(log n) subscripting and advancing, and
147147
// strict index invalidation.

0 commit comments

Comments
 (0)