Index: src/pkg/archive/tar/reader.go |
=================================================================== |
--- a/src/pkg/archive/tar/reader.go |
+++ b/src/pkg/archive/tar/reader.go |
@@ -25,20 +25,6 @@ |
// A tar archive consists of a sequence of files. |
// The Next method advances to the next file in the archive (including the first), |
// and then it can be treated as an io.Reader to access the file's data. |
-// |
-// Example: |
-// tr := tar.NewReader(r) |
-// for { |
-// hdr, err := tr.Next() |
-// if err == io.EOF { |
-// // end of tar archive |
-// break |
-// } |
-// if err != nil { |
-// // handle error |
-// } |
-// io.Copy(data, tr) |
-// } |
type Reader struct { |
r io.Reader |
err error |