From: Ward Vandewege Date: Fri, 22 Apr 2016 01:51:12 +0000 (-0400) Subject: Fix a bunch of misspellings in our Go code (all in comments). X-Git-Tag: 1.1.0~972 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/628f2f2e1bfabdb7221badab3d5189011aee5a54 Fix a bunch of misspellings in our Go code (all in comments). Thank you https://goreportcard.com/report/github.com/curoverse/arvados#misspell No issue # --- diff --git a/sdk/go/manifest/manifest.go b/sdk/go/manifest/manifest.go index cf0ae85c57..22b1c974e6 100644 --- a/sdk/go/manifest/manifest.go +++ b/sdk/go/manifest/manifest.go @@ -265,7 +265,7 @@ func (m *Manifest) FileSegmentIterByName(filepath string) <-chan *FileSegment { return ch } -// Blocks may appear mulitple times within the same manifest if they +// Blocks may appear multiple times within the same manifest if they // are used by multiple files. In that case this Iterator will output // the same block multiple times. // diff --git a/sdk/go/streamer/transfer.go b/sdk/go/streamer/transfer.go index 3f5f9344c5..499b4d9668 100644 --- a/sdk/go/streamer/transfer.go +++ b/sdk/go/streamer/transfer.go @@ -16,13 +16,13 @@ channel back to the transfer() function. Meanwhile, the transfer() function selects() on two channels, the "requests" channel and the "slices" channel. -When a message is recieved on the "slices" channel, this means the a new +When a message is received on the "slices" channel, this means the a new section of the buffer has data, or an error is signaled. Since the data has been read directly into the source_buffer, it is able to simply increases the size of the body slice to encompass the newly filled in section. Then any pending reads are serviced with handleReadRequest (described below). -When a message is recieved on the "requests" channel, it means a StreamReader +When a message is received on the "requests" channel, it means a StreamReader wants access to a slice of the buffer. This is passed to handleReadRequest(). The handleReadRequest() function takes a sliceRequest consisting of a buffer diff --git a/services/crunch-run/crunchrun_test.go b/services/crunch-run/crunchrun_test.go index c826a21e74..5ee879d9f9 100644 --- a/services/crunch-run/crunchrun_test.go +++ b/services/crunch-run/crunchrun_test.go @@ -452,7 +452,7 @@ func (s *TestSuite) TestUpdateContainerRecordCancelled(c *C) { } // Used by the TestFullRun*() test below to DRY up boilerplate setup to do full -// dress rehersal of the Run() function, starting from a JSON container record. +// dress rehearsal of the Run() function, starting from a JSON container record. func FullRunHelper(c *C, record string, fn func(t *TestDockerClient)) (api *ArvTestClient, cr *ContainerRunner) { rec := ContainerRecord{} err := json.NewDecoder(strings.NewReader(record)).Decode(&rec) diff --git a/services/datamanager/loggerutil/loggerutil.go b/services/datamanager/loggerutil/loggerutil.go index 8c655cd5ff..8111425d7a 100644 --- a/services/datamanager/loggerutil/loggerutil.go +++ b/services/datamanager/loggerutil/loggerutil.go @@ -10,7 +10,7 @@ import ( "time" ) -// Useful to call at the begining of execution to log info about the +// Useful to call at the beginning of execution to log info about the // current run. func LogRunInfo(arvLogger *logger.Logger) { if arvLogger != nil { diff --git a/services/datamanager/summary/pull_list.go b/services/datamanager/summary/pull_list.go index aac9aec971..d7fb3eb8f7 100644 --- a/services/datamanager/summary/pull_list.go +++ b/services/datamanager/summary/pull_list.go @@ -71,7 +71,7 @@ func ComputePullServers(kc *keepclient.KeepClient, blockToDesiredReplication map[blockdigest.DigestWithSize]int, underReplicated BlockSet) (m map[Locator]PullServers) { m = map[Locator]PullServers{} - // We use CanonicalString to avoid filling memory with dupicate + // We use CanonicalString to avoid filling memory with duplicate // copies of the same string. var cs CanonicalString diff --git a/services/keepproxy/keepproxy.go b/services/keepproxy/keepproxy.go index 7b5cd2befb..4cd931037e 100644 --- a/services/keepproxy/keepproxy.go +++ b/services/keepproxy/keepproxy.go @@ -185,7 +185,7 @@ func CheckAuthorizationHeader(kc *keepclient.KeepClient, cache *ApiTokenCache, r } if cache.RecallToken(tok) { - // Valid in the cache, short circut + // Valid in the cache, short circuit return true, tok } diff --git a/services/keepstore/trash_worker_test.go b/services/keepstore/trash_worker_test.go index 1d3063a9de..ac9406178c 100644 --- a/services/keepstore/trash_worker_test.go +++ b/services/keepstore/trash_worker_test.go @@ -163,7 +163,7 @@ func TestTrashWorkerIntegration_TwoDifferentLocatorsInVolume1(t *testing.T) { } /* Allow default Trash Life time to be used. Thus, the newly created block - will not be deleted becuase its Mtime is within the trash life time. + will not be deleted because its Mtime is within the trash life time. */ func TestTrashWorkerIntegration_SameLocatorInTwoVolumesWithDefaultTrashLifeTime(t *testing.T) { neverDelete = false