Skip to content

Commit

Permalink
Correct docs on Neg method
Browse files Browse the repository at this point in the history
  • Loading branch information
maddyblue committed Jan 13, 2017
1 parent d18a743 commit b77d01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ func (d *Decimal) Modf(integ, frac *Decimal) {
frac.Exponent = d.Exponent
}

// Neg sets d to -d and returns d.
// Neg sets d to -x and returns d.
func (d *Decimal) Neg(x *Decimal) *Decimal {
d.Set(x)
d.Coeff.Neg(&d.Coeff)
Expand Down

0 comments on commit b77d01e

Please sign in to comment.