diff options
author | xuri <xuri.me@gmail.com> | 2020-07-11 02:31:02 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-07-11 02:31:02 +0800 |
commit | 0aa15106947965bdae9daae7571a4a3f569bf32d (patch) | |
tree | 212b49784a953a056169351be9d07e3abefb8a55 /stream.go | |
parent | 42b1c8148883844cf80b70a3096e6ee67be01f61 (diff) |
update docs and improve compatibility
Diffstat (limited to 'stream.go')
-rw-r--r-- | stream.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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{ |