mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Change proto_to_carbon to use \x for escaping in string literals to be compatible with Carbon string parsing (#1266)
This commit is contained in:
Vendored
+2
-2
@@ -12,12 +12,12 @@
|
||||
package ExplorerTest api;
|
||||
|
||||
fn CompareStr(s: String) -> i32 {
|
||||
if (s == "str;") {
|
||||
if (s == "str;\x07") {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
fn Main() -> i32 {
|
||||
return CompareStr("\x73\x74\x72\x3B");
|
||||
return CompareStr("\x73\x74\x72\x3B\x07");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user