Skip to content

Commit 12a9b6c

Browse files
authored
Merge pull request #4177 from RLovelett/bugfix/typo-in-sourcekitd-test
[SourceKit] Fix typo in `sourcekitd-test` error handler response
2 parents c02df00 + 793398b commit 12a9b6c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/IDE/SwiftSourceDocInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ swift::ide::parseLineCol(StringRef LineCol) {
2424
unsigned Line, Col;
2525
size_t ColonIdx = LineCol.find(':');
2626
if (ColonIdx == StringRef::npos) {
27-
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
27+
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
2828
return None;
2929
}
3030
if (LineCol.substr(0, ColonIdx).getAsInteger(10, Line)) {
31-
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
31+
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
3232
return None;
3333
}
3434
if (LineCol.substr(ColonIdx+1).getAsInteger(10, Col)) {
35-
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
35+
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
3636
return None;
3737
}
3838

tools/SourceKit/tools/sourcekitd-test/TestOptions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ static std::pair<unsigned, unsigned> parseLineCol(StringRef LineCol) {
6161
unsigned Line, Col;
6262
size_t ColonIdx = LineCol.find(':');
6363
if (ColonIdx == StringRef::npos) {
64-
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
64+
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
6565
exit(1);
6666
}
6767
if (LineCol.substr(0, ColonIdx).getAsInteger(10, Line)) {
68-
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
68+
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
6969
exit(1);
7070
}
7171
if (LineCol.substr(ColonIdx+1).getAsInteger(10, Col)) {
72-
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
72+
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
7373
exit(1);
7474
}
7575

0 commit comments

Comments
 (0)