summaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-07-11 02:31:02 +0800
committerxuri <xuri.me@gmail.com>2020-07-11 02:31:02 +0800
commit0aa15106947965bdae9daae7571a4a3f569bf32d (patch)
tree212b49784a953a056169351be9d07e3abefb8a55 /stream.go
parent42b1c8148883844cf80b70a3096e6ee67be01f61 (diff)
update docs and improve compatibility
Diffstat (limited to 'stream.go')
-rw-r--r--stream.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.go b/stream.go
index 81dea1e..bdc0d26 100644
--- a/stream.go
+++ b/stream.go
@@ -72,7 +72,7 @@ type StreamWriter struct {
//
func (f *File) NewStreamWriter(sheet string) (*StreamWriter, error) {
sheetID := f.getSheetID(sheet)
- if sheetID == 0 {
+ if sheetID == -1 {
return nil, fmt.Errorf("sheet %s is not exist", sheet)
}
sw := &StreamWriter{