From bd6c0a4d25e42d6e0fa9e44a13100e98b51fc07d Mon Sep 17 00:00:00 2001 From: Maksim Syomochkin Date: Tue, 21 Jan 2020 12:50:47 +0300 Subject: [PATCH] Fix typo --- xirr.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xirr.go b/xirr.go index 6dcc70e..b4edb2b 100644 --- a/xirr.go +++ b/xirr.go @@ -9,16 +9,16 @@ import ( "time" ) -//A Transaction represents a single transaction from a series of irregular payments. +//A Transaction represent a single transaction from a series of irregular payments. type Transaction struct { Date time.Time Cash float64 } -//Transactions represents a cash flow consisting of individual transactions +//Transactions represent a cash flow consisting of individual transactions type Transactions []Transaction -//Xirr return the Internal Rate of Return (IRR) for an irregular series of cash flows (XIRR) +//Xirr returns the Internal Rate of Return (IRR) for an irregular series of cash flows (XIRR) func Xirr(transactions Transactions) float64 { var years []float64 for _, t := range transactions {