rust-lang/rust — pull request #15329 by pfalabella (2014-07-02 10:02:24+00:00)
Title: Rational that reduce to ints should print like ints

When you print rational expressions it currently looks bad to see integers formatted as fractions with a denominator of 1 (even though that's how they are stored internally).
For instance, in http://is.gd/0gRT1T,

println!("{}", Ratio::::from_integer(42)); // currently prints "42/1"
// this PR allows it to print as "42"