Fixed a typo in proc -(x: T, y: Rational[T])

This commit is contained in:
pgkos
2016-03-18 16:59:15 +01:00
parent 669917c726
commit ef889a1009

View File

@@ -164,7 +164,7 @@ proc `-` *[T](x: Rational[T], y: T): Rational[T] =
proc `-` *[T](x: T, y: Rational[T]): Rational[T] =
## Subtract rational `y` from int `x`.
result.num = - x * y.den + y.num
result.num = x * y.den - y.num
result.den = y.den
proc `-=` *[T](x: var Rational[T], y: Rational[T]) =