mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-14 07:29:02 +03:00
added extra quotes for values of SmallStr, Str
This commit is contained in:
parent
b88f910541
commit
093a054746
@ -328,11 +328,14 @@ fn expr2_to_string_helper(
|
||||
out_string.push_str(&get_spacing(indent_level));
|
||||
|
||||
match expr2 {
|
||||
Expr2::SmallStr(arr_string) => {
|
||||
out_string.push_str(&format!("{}{}{}", "SmallStr(", arr_string.as_str(), ")",))
|
||||
}
|
||||
Expr2::SmallStr(arr_string) => out_string.push_str(&format!(
|
||||
"{}{}{}",
|
||||
"SmallStr(\"",
|
||||
arr_string.as_str(),
|
||||
"\")",
|
||||
)),
|
||||
Expr2::Str(pool_str) => {
|
||||
out_string.push_str(&format!("{}{}{}", "Str(", pool_str.as_str(pool), ")",))
|
||||
out_string.push_str(&format!("{}{}{}", "Str(\"", pool_str.as_str(pool), "\")",))
|
||||
}
|
||||
Expr2::Blank => out_string.push_str("Blank"),
|
||||
Expr2::EmptyRecord => out_string.push_str("EmptyRecord"),
|
||||
|
Loading…
Reference in New Issue
Block a user