Skip to content

Commit

Permalink
Minor typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Jul 26, 2024
1 parent 35e3b1a commit 7f35c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bigdecimal/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Complex < Numeric
# See also Kernel.BigDecimal.
#
def to_d(*args)
BigDecimal(self) unless self.imag.zero? # to raise eerror
BigDecimal(self) unless self.imag.zero? # to raise error

if args.length == 0
case self.real
Expand Down

0 comments on commit 7f35c41

Please sign in to comment.