]> git.lizzy.rs Git - rust.git/commitdiff
Fix Debug impl for RangeFull
authorUlrik Sverdrup <root@localhost>
Thu, 16 Apr 2015 08:02:22 +0000 (10:02 +0200)
committerUlrik Sverdrup <root@localhost>
Thu, 16 Apr 2015 08:02:22 +0000 (10:02 +0200)
The Debug impl was using quotes, which was inconsistent:

    => (.., 1.., 2..3, ..4)
    ("..", 1.., 2..3, ..4)

Fix to use just ..

src/libcore/ops.rs

index 00039c4fcdf15c23dcca3d768668c6fb95c7f24d..adfbd14121f586270155d387fe4d2ea6c3f59975 100644 (file)
@@ -969,7 +969,7 @@ pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
 #[stable(feature = "rust1", since = "1.0.0")]
 impl fmt::Debug for RangeFull {
     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
-        fmt::Debug::fmt("..", fmt)
+        write!(fmt, "..")
     }
 }