about summary refs log tree commit diff
path: root/src/libcollections/vec_map.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-25 10:29:23 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-25 10:29:23 +0530
commitc950ee93c95d9cfe68ed431bdc45cea67a554757 (patch)
treed2a3f8150b83d55a5935c312ff5eaecf9278f599 /src/libcollections/vec_map.rs
parent1c97ac3d12074568269d34018ca254ae44fe40b9 (diff)
parent870ad3bc75ef25a01b81ff115ab307d21c738a0f (diff)
downloadrust-c950ee93c95d9cfe68ed431bdc45cea67a554757.tar.gz
rust-c950ee93c95d9cfe68ed431bdc45cea67a554757.zip
Rollup merge of #22157 - tbu-:pr_debug_collections, r=alexcrichton
 r? @Gankro
Diffstat (limited to 'src/libcollections/vec_map.rs')
-rw-r--r--src/libcollections/vec_map.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcollections/vec_map.rs b/src/libcollections/vec_map.rs
index 1c497c86dfd..5a0aa750bf5 100644
--- a/src/libcollections/vec_map.rs
+++ b/src/libcollections/vec_map.rs
@@ -739,7 +739,7 @@ impl<V: Ord> Ord for VecMap<V> {
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<V: fmt::Debug> fmt::Debug for VecMap<V> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        try!(write!(f, "VecMap {{"));
+        try!(write!(f, "{{"));
 
         for (i, (k, v)) in self.iter().enumerate() {
             if i != 0 { try!(write!(f, ", ")); }
@@ -1318,8 +1318,8 @@ mod test_map {
         map.insert(3, 4);
 
         let map_str = format!("{:?}", map);
-        assert!(map_str == "VecMap {1: 2, 3: 4}" || map_str == "{3: 4, 1: 2}");
-        assert_eq!(format!("{:?}", empty), "VecMap {}");
+        assert!(map_str == "{1: 2, 3: 4}" || map_str == "{3: 4, 1: 2}");
+        assert_eq!(format!("{:?}", empty), "{}");
     }
 
     #[test]