Skip to content

Commit 709b5e8

Browse files
author
Ulrik Sverdrup
committed
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 ..
1 parent 798fa22 commit 709b5e8

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)