Skip to content

Commit fb88cca

Browse files
committed
Rollup merge of rust-lang#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 ..
2 parents 3c0b68b + 709b5e8 commit fb88cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ pub struct RangeFull;
969969
#[stable(feature = "rust1", since = "1.0.0")]
970970
impl fmt::Debug for RangeFull {
971971
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
972-
fmt::Debug::fmt("..", fmt)
972+
write!(fmt, "..")
973973
}
974974
}
975975

0 commit comments

Comments
 (0)