Skip to content

Commit c2909d1

Browse files
authored
Update README.md
1 parent 8f61aab commit c2909d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ To automatically add an index to a stream, add `WriterAddIndex()` option to your
704704
Then the index will be added to the stream when `Close()` is called.
705705

706706
```
707-
// Add Index to stream...
707+
// Add Index to stream...
708708
enc := s2.NewWriter(w, s2.WriterAddIndex())
709709
io.Copy(enc, r)
710710
enc.Close()
@@ -714,7 +714,7 @@ If you want to store the index separately, you can use `CloseIndex()` instead of
714714
This will return the index. Note that `CloseIndex()` should only be called once, and you shouldn't call `Close()`.
715715

716716
```
717-
// Get index for separate storage...
717+
// Get index for separate storage...
718718
enc := s2.NewWriter(w)
719719
io.Copy(enc, r)
720720
index, err := enc.CloseIndex()

0 commit comments

Comments
 (0)