Skip to content

Commit 5d6298a

Browse files
authored
Merge pull request #30996 from rintaro/ide-completion-performcachedoperaiton
[CodeCompletion][NFC] Fix typo
2 parents 21eb60f + 2bf9dde commit 5d6298a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/IDE/CompletionInstance.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CompletionInstance {
5050
/// Returns \c if the callback was called. Returns \c false if the compiler
5151
/// argument has changed, primary file is not the same, the \c Offset is not
5252
/// in function bodies, or the interface hash of the file has changed.
53-
bool performCachedOperaitonIfPossible(
53+
bool performCachedOperationIfPossible(
5454
const swift::CompilerInvocation &Invocation, llvm::hash_code ArgsHash,
5555
llvm::MemoryBuffer *completionBuffer, unsigned int Offset,
5656
DiagnosticConsumer *DiagC,

lib/IDE/CompletionInstance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static DeclContext *getEquivalentDeclContextFromSourceFile(DeclContext *DC,
164164

165165
} // namespace
166166

167-
bool CompletionInstance::performCachedOperaitonIfPossible(
167+
bool CompletionInstance::performCachedOperationIfPossible(
168168
const swift::CompilerInvocation &Invocation, llvm::hash_code ArgsHash,
169169
llvm::MemoryBuffer *completionBuffer, unsigned int Offset,
170170
DiagnosticConsumer *DiagC,
@@ -454,7 +454,7 @@ bool swift::ide::CompletionInstance::performOperation(
454454
// the cached completion instance.
455455
std::lock_guard<std::mutex> lock(mtx);
456456

457-
if (performCachedOperaitonIfPossible(Invocation, ArgsHash, completionBuffer,
457+
if (performCachedOperationIfPossible(Invocation, ArgsHash, completionBuffer,
458458
Offset, DiagC, Callback))
459459
return true;
460460

0 commit comments

Comments
 (0)