Skip to content

Commit

Permalink
Rollup merge of rust-lang#24491 - bluss:rangefull-debug, r=huonw
Browse files Browse the repository at this point in the history
 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 ..
  • Loading branch information
Manishearth committed Apr 17, 2015
2 parents a1bb0a1 + 709b5e8 commit bdef7f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, "..")
}
}

Expand Down

0 comments on commit bdef7f6

Please sign in to comment.