Skip to content

Commit 4c55e8d

Browse files
Merge pull request #2068 from practicalswift/gardening-20160405
[gardening] Fix typos: refererences → references, accross → across, is → it
2 parents eac994b + 82cacf7 commit 4c55e8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/OptimizationTips.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ alive.
532532

533533
// The call to ``withExtendedLifetime(Head)`` makes sure that the lifetime of
534534
// Head is guaranteed to extend over the region of code that uses Unmanaged
535-
// refererences. Because there exists a reference to Head for the duration
535+
// references. Because there exists a reference to Head for the duration
536536
// of the scope and we don't modify the list of ``Node``s there also exist a
537537
// reference through the chain of ``Head.next``, ``Head.next.next``, ...
538538
// instances.
@@ -544,7 +544,7 @@ alive.
544544

545545
// Use the unmanaged reference in a call/variable access. The use of
546546
// _withUnsafeGuaranteedRef allows the compiler to remove the ultimate
547-
// retain/release accross the call/access.
547+
// retain/release across the call/access.
548548

549549
while let Next = Ref._withUnsafeGuaranteedRef { $0.next } {
550550
...

lib/ClangImporter/SwiftLookupTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void SwiftLookupTable::addEntry(DeclName name, SingleEntry newEntry,
291291
// Translate the context.
292292
auto contextOpt = translateContext(effectiveContext);
293293
if (!contextOpt) {
294-
// If is is a declaration with a swift_name attribute, we might be
294+
// If it is a declaration with a swift_name attribute, we might be
295295
// able to resolve this later.
296296
if (auto decl = newEntry.dyn_cast<clang::NamedDecl *>()) {
297297
if (decl->hasAttr<clang::SwiftNameAttr>()) {

0 commit comments

Comments
 (0)