Skip to content

Commit

Permalink
init?() now fails on nonsense input
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Es committed Nov 22, 2021
1 parent 19378b0 commit b54ffa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let end = df.date(from: "2020-06-30T12:00:00Z")!
let period = DateInterval(start: beg, end: end)
let mv = MD.MarketValueDelta(105, 100)
let cf: MD.CashflowMap = [mid: -10.0]
let md = MD(period, mv, cf)
let md = MD(period, mv, cf)!

print("\(md.performance * 100)%")

Expand Down

0 comments on commit b54ffa8

Please sign in to comment.