Procházet zdrojové kódy

Fix typos

Signed-off-by: chenyuzhu <chenyuzhi@oschina.cn>
chenyuzhu před 7 roky
rodič
revize
5ac0d2f0b8

+ 1 - 1
pkg/fileutils/fileutils.go

@@ -13,7 +13,7 @@ import (
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
 )
 )
 
 
-// PatternMatcher allows checking paths agaist a list of patterns
+// PatternMatcher allows checking paths against a list of patterns
 type PatternMatcher struct {
 type PatternMatcher struct {
 	patterns   []*Pattern
 	patterns   []*Pattern
 	exclusions bool
 	exclusions bool

+ 1 - 1
pkg/namesgenerator/names-generator.go

@@ -198,7 +198,7 @@ var (
 		// Asima Chatterjee was an indian organic chemist noted for her research on vinca alkaloids, development of drugs for treatment of epilepsy and malaria - https://en.wikipedia.org/wiki/Asima_Chatterjee
 		// Asima Chatterjee was an indian organic chemist noted for her research on vinca alkaloids, development of drugs for treatment of epilepsy and malaria - https://en.wikipedia.org/wiki/Asima_Chatterjee
 		"chatterjee",
 		"chatterjee",
 
 
-		// Pafnuty Chebyshev - Russian mathematitian. He is known fo his works on probability, statistics, mechanics, analytical geometry and number theory https://en.wikipedia.org/wiki/Pafnuty_Chebyshev
+		// Pafnuty Chebyshev - Russian mathematician. He is known fo his works on probability, statistics, mechanics, analytical geometry and number theory https://en.wikipedia.org/wiki/Pafnuty_Chebyshev
 		"chebyshev",
 		"chebyshev",
 
 
 		//Claude Shannon - The father of information theory and founder of digital circuit design theory. (https://en.wikipedia.org/wiki/Claude_Shannon)
 		//Claude Shannon - The father of information theory and founder of digital circuit design theory. (https://en.wikipedia.org/wiki/Claude_Shannon)

+ 1 - 1
pkg/stdcopy/stdcopy_test.go

@@ -23,7 +23,7 @@ func TestWriteWithUninitializedStdWriter(t *testing.T) {
 	}
 	}
 	n, err := writer.Write([]byte("Something here"))
 	n, err := writer.Write([]byte("Something here"))
 	if n != 0 || err == nil {
 	if n != 0 || err == nil {
-		t.Fatalf("Should fail when given an uncomplete or uninitialized StdWriter")
+		t.Fatalf("Should fail when given an incomplete or uninitialized StdWriter")
 	}
 	}
 }
 }