mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 07:54:58 +01:00
@@ -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