Fix typo
This commit is contained in:
parent
c377e6883c
commit
f6c83c32f3
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ proc `+` *(x: Rational, y: int): Rational =
|
||||||
result.den = x.den
|
result.den = x.den
|
||||||
|
|
||||||
proc `+` *(x: int, y: Rational): Rational =
|
proc `+` *(x: int, y: Rational): Rational =
|
||||||
## Add int `x` to tational `y`.
|
## Add int `x` to rational `y`.
|
||||||
result.num = x * y.den + y.num
|
result.num = x * y.den + y.num
|
||||||
result.den = y.den
|
result.den = y.den
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue