Skip to content

Commit bdef7f6

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 a1bb0a1 + 709b5e8 commit bdef7f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ops.rs

Lines changed: 1 addition & 1 deletion
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)