about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-17 18:14:44 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-17 19:01:28 +0530
commitbdef7f62f5b15ba8dac1479cdc7fa8dded8f52c4 (patch)
tree8ac6574b96fb2a3b27e1870147865f0954d77629
parenta1bb0a182c94595f8af6cb84b27f6121b59d0ac8 (diff)
parent709b5e8c89a5cdce911b26d2617f08c481c26341 (diff)
downloadrust-bdef7f62f5b15ba8dac1479cdc7fa8dded8f52c4.tar.gz
rust-bdef7f62f5b15ba8dac1479cdc7fa8dded8f52c4.zip
Rollup merge of #24491 - bluss:rangefull-debug, r=huonw
 Fix Debug impl for RangeFull

The Debug impl was using quotes, which was inconsistent:

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

Fix to use just ..
-rw-r--r--src/libcore/ops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs
index 00039c4fcdf..adfbd14121f 100644
--- a/src/libcore/ops.rs
+++ b/src/libcore/ops.rs
@@ -969,7 +969,7 @@ pub struct RangeFull;
 #[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, "..")
     }
 }