From 5ac0d2f0b83e65f49b490e9d20c7a5b0e65f8e55 Mon Sep 17 00:00:00 2001 From: chenyuzhu Date: Wed, 16 May 2018 09:06:43 +0800 Subject: [PATCH] Fix typos Signed-off-by: chenyuzhu --- pkg/fileutils/fileutils.go | 2 +- pkg/namesgenerator/names-generator.go | 2 +- pkg/stdcopy/stdcopy_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/fileutils/fileutils.go b/pkg/fileutils/fileutils.go index 88e0f2834b..28cad499aa 100644 --- a/pkg/fileutils/fileutils.go +++ b/pkg/fileutils/fileutils.go @@ -13,7 +13,7 @@ import ( "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 { patterns []*Pattern exclusions bool diff --git a/pkg/namesgenerator/names-generator.go b/pkg/namesgenerator/names-generator.go index d1da8539bd..5c3395aaaa 100644 --- a/pkg/namesgenerator/names-generator.go +++ b/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 "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", //Claude Shannon - The father of information theory and founder of digital circuit design theory. (https://en.wikipedia.org/wiki/Claude_Shannon) diff --git a/pkg/stdcopy/stdcopy_test.go b/pkg/stdcopy/stdcopy_test.go index 2ec0c320d7..63edb855e5 100644 --- a/pkg/stdcopy/stdcopy_test.go +++ b/pkg/stdcopy/stdcopy_test.go @@ -23,7 +23,7 @@ func TestWriteWithUninitializedStdWriter(t *testing.T) { } n, err := writer.Write([]byte("Something here")) 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") } }