Skip to content

Commit

Permalink
Use plain English.
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeApophis committed Aug 21, 2023
1 parent 84e7e9a commit 9755c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Funcky.Money/MoneyEvaluationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private Builder(Option<Currency> currency, Option<decimal> distributionUnit, Opt

public MoneyEvaluationContext Build()
=> CompatibleRounding().Match(none: false, some: Not<bool>(Identity))
? throw new IncompatibleRoundingException($"The roundingStrategy {_roundingStrategy} is incompatible with the smallest possible distribution unit {_distributionUnit}.")
? throw new IncompatibleRoundingException($"The rounding strategy {_roundingStrategy} is incompatible with the smallest possible distribution unit {_distributionUnit}.")
: CreateContext();

public Builder WithTargetCurrency(Currency currency)
Expand Down

0 comments on commit 9755c05

Please sign in to comment.