From 0ed2733991338994ece2b6efdc89501a98985a96 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 10 Sep 2024 01:06:38 -0400 Subject: [PATCH] Add quotes to string value display --- dust-lang/src/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dust-lang/src/value.rs b/dust-lang/src/value.rs index 858f512..be861ec 100644 --- a/dust-lang/src/value.rs +++ b/dust-lang/src/value.rs @@ -1223,7 +1223,7 @@ impl Display for ValueData { ValueData::Range(range_value) => { write!(f, "{range_value}") } - ValueData::String(string) => write!(f, "{string}"), + ValueData::String(string) => write!(f, "\"{string}\""), ValueData::Struct(r#struct) => write!(f, "{struct}"), ValueData::Tuple(fields) => { write!(f, "(")?;