Rename rac.Reader to rac.Parser

This commit is contained in:
Nigel Tao committed 2019-08-06 15:25:44 +10:00
1 parent 5c16eac8bb
commit a8082bf301
4 files changed
+45 -45

No files matched your search

+2 -2
View File
@@ -161,13 +161,13 @@ func Example_indexLocationAtStart() {
// original "One sheep.\nTwo sheep\.Three sheep.\n" source.
fmt.Printf("Decoded:\n")
r := &rac.Reader{
p := &rac.Parser{
ReadSeeker: bytes.NewReader(encoded),
CompressedSize: int64(len(encoded)),
}
zr := io.ReadCloser(nil)
for {
chunk, err := r.NextChunk()
chunk, err := p.NextChunk()
if err == io.EOF {
break
} else if err != nil {