From 07a59c8930daa7b9e4e463c63963e73300dde0d8 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Tue, 15 Oct 2024 19:00:07 -0700 Subject: [PATCH] Update empty Map to_repr to match syntax Empty Map will output `[:]` instead of `[]` now Signed-off-by: Alek Ratzloff --- src/obj/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/obj/map.rs b/src/obj/map.rs index a4cf943..4bb6dc8 100644 --- a/src/obj/map.rs +++ b/src/obj/map.rs @@ -135,7 +135,7 @@ impl Map { let this_borrowed = this.borrow(); let map_obj = this_borrowed.as_any().downcast_ref::().unwrap(); if map_obj.table().len() == 0 { - return Str::create("[]"); + return Str::create("[:]"); } let mut repr = "[".to_string();