From 87c6416d0caff986965a40b038c919d12014ee30 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 8 Sep 2011 13:23:06 -0700 Subject: rt: Don't double-print commas when logging e.g. a vec of boxes --- src/rt/rust_shape.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_shape.cpp') diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp index 47f8b1d688e..7f242143d51 100644 --- a/src/rt/rust_shape.cpp +++ b/src/rt/rust_shape.cpp @@ -440,6 +440,7 @@ log::walk_string(const std::pair &data) { void log::walk_struct(const uint8_t *end_sp) { out << prefix << "("; + prefix = ""; bool first = true; while (sp != end_sp) { -- cgit 1.4.1-3-g733a5