Skip to content

Commit

Permalink
Remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
derekjw committed Jul 18, 2010
1 parent 3df5e9d commit cb3f99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/Ratio.scala
Expand Up @@ -53,7 +53,7 @@ final class Ratio private (val n: BigInt, val d: BigInt) extends ScalaNumber wit

def compare(that: Ratio): Int = (n * that.d) compare (that.n * d)

override def toString = if (d > 1) (n.toString + " / " + d.toString) else (n.toString)
override def toString = if (d > 1) (n.toString + "/" + d.toString) else (n.toString)

override def hashCode: Int = 37 * (37 + (n % BigInt(Int.MaxValue)).toInt) + (d % BigInt(Int.MaxValue)).toInt

Expand Down

0 comments on commit cb3f99e

Please sign in to comment.