Browse code

Fix typos in pkg

Signed-off-by: bin liu <liubin0329@gmail.com>

bin liu authored on 2018/02/10 20:28:12
Showing 2 changed files
... ...
@@ -35,7 +35,7 @@ func DefaultPathEnv(os string) string {
35 35
 // This is used, for example, when validating a user provided path in docker cp.
36 36
 // If a drive letter is supplied, it must be the system drive. The drive letter
37 37
 // is always removed. Also, it translates it to OS semantics (IOW / to \). We
38
-// need the path in this syntax so that it can ultimately be contatenated with
38
+// need the path in this syntax so that it can ultimately be concatenated with
39 39
 // a Windows long-path which doesn't support drive-letters. Examples:
40 40
 // C:			--> Fail
41 41
 // C:\			--> \
... ...
@@ -16,7 +16,7 @@ var eol = []byte("\n")
16 16
 // ErrNonPositiveLinesNumber is an error returned if the lines number was negative.
17 17
 var ErrNonPositiveLinesNumber = errors.New("The number of lines to extract from the file must be positive")
18 18
 
19
-//TailFile returns last n lines of reader f (could be a fil).
19
+//TailFile returns last n lines of reader f (could be a nil).
20 20
 func TailFile(f io.ReadSeeker, n int) ([][]byte, error) {
21 21
 	if n <= 0 {
22 22
 		return nil, ErrNonPositiveLinesNumber