]> Cypherpunks repositories - gostls13.git/commitdiff
archive/tar: fix typo in documentation
authorJoe Tsai <joetsai@digital-static.net>
Tue, 3 Oct 2017 09:53:01 +0000 (02:53 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 3 Oct 2017 16:24:53 +0000 (16:24 +0000)
s/TypeSymLink/TypeSymlink/g

Change-Id: I2550843248eb27d90684d0036fe2add0b247ae5a
Reviewed-on: https://go-review.googlesource.com/67810
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/archive/tar/reader.go
src/archive/tar/writer.go

index 94fa41730861eef7a5059ced4b78ac0a6ca2e7d8..bde6e1205ce37d6a0886266432ed432e38240e81 100644 (file)
@@ -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
 // 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
 // the Header.Size claims.
 func (tr *Reader) Read(b []byte) (int, error) {
index 5e183cb2bb9ffe95631360166e09d4df9f9eebee..0afb5577eba1e2acc566af7afc0f6a935fd4ae47 100644 (file)
@@ -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
 // 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
 // of what the Header.Size claims.
 func (tw *Writer) Write(b []byte) (int, error) {