mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 11:38:33 +00:00
1 parent
ecb300ee5e
commit
b19a87642b
3 files changed
+8
-8
No files matched your search
@@ -38,7 +38,7 @@ auto UnescapeStringLiteral(llvm::StringRef source, const int hashtag_num,
|
||||
while (i < source.size()) {
|
||||
char c = source[i];
|
||||
if (i + hashtag_num < source.size() &&
|
||||
source.slice(i, i + hashtag_num + 1).equals(escape)) {
|
||||
source.slice(i, i + hashtag_num + 1) == escape) {
|
||||
i += hashtag_num + 1;
|
||||
if (i == source.size()) {
|
||||
return std::nullopt;
|
||||
|
||||
Reference in new issue
Block a user