Skip to content

[gardening] Fix typos: refererences → references, accross → across, is → it #2068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/OptimizationTips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ alive.

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

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

while let Next = Ref._withUnsafeGuaranteedRef { $0.next } {
...
Expand Down
2 changes: 1 addition & 1 deletion lib/ClangImporter/SwiftLookupTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void SwiftLookupTable::addEntry(DeclName name, SingleEntry newEntry,
// Translate the context.
auto contextOpt = translateContext(effectiveContext);
if (!contextOpt) {
// If is is a declaration with a swift_name attribute, we might be
// If it is a declaration with a swift_name attribute, we might be
// able to resolve this later.
if (auto decl = newEntry.dyn_cast<clang::NamedDecl *>()) {
if (decl->hasAttr<clang::SwiftNameAttr>()) {
Expand Down