Commit e04ff3d1 authored by Joe Tsai's avatar Joe Tsai Committed by Joe Tsai

archive/tar: fix typo in documentation

s/TypeSymLink/TypeSymlink/g

Change-Id: I2550843248eb27d90684d0036fe2add0b247ae5a
Reviewed-on: https://go-review.googlesource.com/67810Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 5d1addf4
...@@ -611,7 +611,7 @@ func readGNUSparseMap0x1(paxHdrs map[string]string) (sparseDatas, error) { ...@@ -611,7 +611,7 @@ func readGNUSparseMap0x1(paxHdrs map[string]string) (sparseDatas, error) {
// If the current file is sparse, then the regions marked as a hole // If the current file is sparse, then the regions marked as a hole
// are read back as NUL-bytes. // are read back as NUL-bytes.
// //
// Calling Read on special types like TypeLink, TypeSymLink, TypeChar, // Calling Read on special types like TypeLink, TypeSymlink, TypeChar,
// TypeBlock, TypeDir, and TypeFifo returns (0, io.EOF) regardless of what // TypeBlock, TypeDir, and TypeFifo returns (0, io.EOF) regardless of what
// the Header.Size claims. // the Header.Size claims.
func (tr *Reader) Read(b []byte) (int, error) { func (tr *Reader) Read(b []byte) (int, error) {
......
...@@ -392,7 +392,7 @@ func splitUSTARPath(name string) (prefix, suffix string, ok bool) { ...@@ -392,7 +392,7 @@ func splitUSTARPath(name string) (prefix, suffix string, ok bool) {
// If the current file is sparse, then the regions marked as a hole // If the current file is sparse, then the regions marked as a hole
// must be written as NUL-bytes. // must be written as NUL-bytes.
// //
// Calling Write on special types like TypeLink, TypeSymLink, TypeChar, // Calling Write on special types like TypeLink, TypeSymlink, TypeChar,
// TypeBlock, TypeDir, and TypeFifo returns (0, ErrWriteTooLong) regardless // TypeBlock, TypeDir, and TypeFifo returns (0, ErrWriteTooLong) regardless
// of what the Header.Size claims. // of what the Header.Size claims.
func (tw *Writer) Write(b []byte) (int, error) { func (tw *Writer) Write(b []byte) (int, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment