summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-11-17 00:25:36 +0800
committerxuri <xuri.me@gmail.com>2021-11-17 00:25:36 +0800
commitbc3c7d51a2efe5f0ad85667a8f9636f13941d577 (patch)
treed8df81412ae201e427c3e43c6aa8638f8e3c247b /lib.go
parentbda8e7f8129dae0064c47f8e051f76492e1128f5 (diff)
ref #65: new formula function PRICE
- fix COUPPCD result accuracy issue - update close spreadsheet example in documentation and README
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.go b/lib.go
index 535161a..ccb09ac 100644
--- a/lib.go
+++ b/lib.go
@@ -526,7 +526,7 @@ func bytesReplace(s, old, new []byte, n int) []byte {
}
w += copy(s[w:], s[i:])
- return s[0:w]
+ return s[:w]
}
// genSheetPasswd provides a method to generate password for worksheet