From 78f5972b30942ce6b95efcce32ca0cacad874098 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 31 Aug 2016 11:19:13 -0400 Subject: [PATCH] Activity for 1.2.2.1 --- rustbyexample/01221/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustbyexample/01221/src/main.rs b/rustbyexample/01221/src/main.rs index f28d417..98e9783 100644 --- a/rustbyexample/01221/src/main.rs +++ b/rustbyexample/01221/src/main.rs @@ -10,7 +10,7 @@ impl fmt::Display for List { for (count, v) in vec.iter().enumerate() { if count != 0 { try!(write!(f, ", ")); } - try!(write!(f, "{}", v)); + try!(write!(f, "{}: {}", count, v)); } write!(f, "]")