From 0f78f158aabf17c2c109e808b58beccb03192486 Mon Sep 17 00:00:00 2001 From: Veres Lajos Date: Fri, 7 Aug 2015 23:24:18 +0100 Subject: [PATCH] typofix - https://github.com/vlajos/misspell_fixer Signed-off-by: Veres Lajos --- archive/copy.go | 2 +- archive/diff.go | 2 +- graphdb/graphdb.go | 2 +- graphdb/graphdb_test.go | 2 +- ioutils/readers.go | 2 +- mflag/flag.go | 2 +- namesgenerator/names-generator.go | 2 +- stdcopy/stdcopy_test.go | 2 +- tailfile/tailfile.go | 2 +- term/windows/ansi_reader.go | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/archive/copy.go b/archive/copy.go index 0fd5830..a7ed12c 100644 --- a/archive/copy.go +++ b/archive/copy.go @@ -306,7 +306,7 @@ func PrepareArchiveCopy(srcContent Reader, srcInfo, dstInfo CopyInfo) (dstDir st } // rebaseArchiveEntries rewrites the given srcContent archive replacing -// an occurance of oldBase with newBase at the beginning of entry names. +// an occurrence of oldBase with newBase at the beginning of entry names. func rebaseArchiveEntries(srcContent Reader, oldBase, newBase string) Archive { if oldBase == string(os.PathSeparator) { // If oldBase specifies the root directory, use an empty string as diff --git a/archive/diff.go b/archive/diff.go index 23130a6..50656cb 100644 --- a/archive/diff.go +++ b/archive/diff.go @@ -58,7 +58,7 @@ func UnpackLayer(dest string, layer Reader) (size int64, err error) { // TODO Windows. Once the registry is aware of what images are Windows- // specific or Linux-specific, this warning should be changed to an error // to cater for the situation where someone does manage to upload a Linux - // image but have it tagged as Windows inadvertantly. + // image but have it tagged as Windows inadvertently. if runtime.GOOS == "windows" { if strings.Contains(hdr.Name, ":") { logrus.Warnf("Windows: Ignoring %s (is this a Linux image?)", hdr.Name) diff --git a/graphdb/graphdb.go b/graphdb/graphdb.go index 2bfb52f..eca433f 100644 --- a/graphdb/graphdb.go +++ b/graphdb/graphdb.go @@ -307,7 +307,7 @@ func (db *Database) Parents(name string) ([]string, error) { return db.parents(e) } -// Refs returns the refrence count for a specified id. +// Refs returns the reference count for a specified id. func (db *Database) Refs(id string) int { db.mux.RLock() defer db.mux.RUnlock() diff --git a/graphdb/graphdb_test.go b/graphdb/graphdb_test.go index 6912ab6..b9d2d63 100644 --- a/graphdb/graphdb_test.go +++ b/graphdb/graphdb_test.go @@ -243,7 +243,7 @@ func TestAddSelfAsChild(t *testing.T) { } } -func TestAddChildToNonExistantRoot(t *testing.T) { +func TestAddChildToNonExistentRoot(t *testing.T) { db, dbpath := newTestDb(t) defer destroyTestDb(dbpath) diff --git a/ioutils/readers.go b/ioutils/readers.go index 10ebcb5..6b03210 100644 --- a/ioutils/readers.go +++ b/ioutils/readers.go @@ -233,7 +233,7 @@ func HashData(src io.Reader) (string, error) { } // OnEOFReader wraps a io.ReadCloser and a function -// the fuction will run at the end of file or close the file. +// the function will run at the end of file or close the file. type OnEOFReader struct { Rc io.ReadCloser Fn func() diff --git a/mflag/flag.go b/mflag/flag.go index fa8b045..dd31884 100644 --- a/mflag/flag.go +++ b/mflag/flag.go @@ -1094,7 +1094,7 @@ func (fs *FlagSet) ParseFlags(args []string, withHelp bool) error { } // ReportError is a utility method that prints a user-friendly message -// containing the error that occured during parsing and a suggestion to get help +// containing the error that occurred during parsing and a suggestion to get help func (fs *FlagSet) ReportError(str string, withHelp bool) { if withHelp { if os.Args[0] == fs.Name() { diff --git a/namesgenerator/names-generator.go b/namesgenerator/names-generator.go index fbb9908..8154f28 100644 --- a/namesgenerator/names-generator.go +++ b/namesgenerator/names-generator.go @@ -107,7 +107,7 @@ var ( // Homi J Bhabha - was an Indian nuclear physicist, founding director, and professor of physics at the Tata Institute of Fundamental Research. Colloquially known as "father of Indian nuclear programme"- https://en.wikipedia.org/wiki/Homi_J._Bhabha "bhabha", - // Bhaskara II - Ancient Indian mathematician-astronomer whose work on calculus predates Newton and Leibniz by over half a millenium - https://en.wikipedia.org/wiki/Bh%C4%81skara_II#Calculus + // Bhaskara II - Ancient Indian mathematician-astronomer whose work on calculus predates Newton and Leibniz by over half a millennium - https://en.wikipedia.org/wiki/Bh%C4%81skara_II#Calculus "bhaskara", // Elizabeth Blackwell - American doctor and first American woman to receive a medical degree - https://en.wikipedia.org/wiki/Elizabeth_Blackwell diff --git a/stdcopy/stdcopy_test.go b/stdcopy/stdcopy_test.go index a9fd73a..7351ce0 100644 --- a/stdcopy/stdcopy_test.go +++ b/stdcopy/stdcopy_test.go @@ -45,7 +45,7 @@ func TestWrite(t *testing.T) { t.Fatalf("Error while writing with StdWrite") } if n != len(data) { - t.Fatalf("Write should have writen %d byte but wrote %d.", len(data), n) + t.Fatalf("Write should have written %d byte but wrote %d.", len(data), n) } } diff --git a/tailfile/tailfile.go b/tailfile/tailfile.go index 83b852c..d580584 100644 --- a/tailfile/tailfile.go +++ b/tailfile/tailfile.go @@ -1,4 +1,4 @@ -// Package tailfile provides helper functinos to read the nth lines of any +// Package tailfile provides helper functions to read the nth lines of any // ReadSeeker. package tailfile diff --git a/term/windows/ansi_reader.go b/term/windows/ansi_reader.go index 53becb0..1246e8b 100644 --- a/term/windows/ansi_reader.go +++ b/term/windows/ansi_reader.go @@ -86,7 +86,7 @@ func (ar *ansiReader) Read(p []byte) (int, error) { ar.buffer = keyBytes[len(p):] keyBytes = keyBytes[:len(p)] } else if len(keyBytes) == 0 { - logger.Debug("No key bytes returned from the translater") + logger.Debug("No key bytes returned from the translator") return 0, nil }