Skip to content

Commit bcd90ec

Browse files
jonekdahlp-mongo
authored andcommitted
Remove call to deprecated BigDecimal.new (#119)
RUBY-1653 Replace BigDecimal.new with BigDecimal()
1 parent 83e2015 commit bcd90ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/bson-v4.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ decimal rounding with exact precision.
227227
BSON::Decimal128.new("1.28")
228228

229229
# Instantiate with a BigDecimal
230-
d = BigDecimal.new(1.28, 3)
230+
d = BigDecimal(1.28, 3)
231231
BSON::Decimal128.new(d)
232232

233233
JSON Serialization

0 commit comments

Comments
 (0)