Skip to content

Commit

Permalink
Context: fix mismatching function name in NewString API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
db47h committed Jul 6, 2020
1 parent 44c0ea9 commit 83ef17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (c *Context) NewRat(x *big.Rat) *decimal.Decimal {
return c.New().SetRat(x)
}

// NewFromString returns a new Decimal with the value of s and a boolean
// NewString returns a new Decimal with the value of s and a boolean
// indicating success. s must be a floating-point number of the same format as
// accepted by (*decimal.Decimal).Parse, with base argument 0. The entire string
// (not just a prefix) must be valid for success. If the operation failed, the
Expand Down

0 comments on commit 83ef17a

Please sign in to comment.