Skip to content

Commit e5ae7a5

Browse files
committed
rename Money's static member function with
1 parent 56a6b03 commit e5ae7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsharp/AddingMeaningToPrimitiveTypes/WithStaticMembers.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Money = Money of decimal with
1111
static member (+) (Money m1, Money m2) = Money (m1 + m2)
1212

1313
static member (~-) (Money m1) = Money -m1
14-
static member get_Zero() = Money 0m
14+
static member Zero = Money 0m
1515
static member DivideByInt ((Money m), (x : int)) =
1616
Decimal.Divide(m, Convert.ToDecimal(x))
1717
|> Money

0 commit comments

Comments
 (0)