From f77c82ebb36276ca350cb1592169b2dd1ceea589 Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Wed, 10 Feb 2016 16:26:29 -0800 Subject: [PATCH] Typo fixes in comments Correct spelling of words in source code comments. Signed-off-by: Aaron Lehmann --- docs/api/v2/descriptors.go | 6 +++--- docs/api/v2/errors.go | 2 +- docs/handlers/api_test.go | 6 +++--- docs/handlers/app.go | 2 +- docs/handlers/helpers.go | 2 +- docs/storage/driver/gcs/gcs.go | 2 +- docs/storage/driver/storagedriver.go | 2 +- docs/storage/driver/testsuites/testsuites.go | 2 +- docs/storage/paths.go | 6 +++--- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/api/v2/descriptors.go b/docs/api/v2/descriptors.go index ad3da3ef..7549ccc3 100644 --- a/docs/api/v2/descriptors.go +++ b/docs/api/v2/descriptors.go @@ -271,7 +271,7 @@ type MethodDescriptor struct { // RequestDescriptor per API use case. type RequestDescriptor struct { // Name provides a short identifier for the request, usable as a title or - // to provide quick context for the particalar request. + // to provide quick context for the particular request. Name string // Description should cover the requests purpose, covering any details for @@ -303,14 +303,14 @@ type RequestDescriptor struct { // ResponseDescriptor describes the components of an API response. type ResponseDescriptor struct { // Name provides a short identifier for the response, usable as a title or - // to provide quick context for the particalar response. + // to provide quick context for the particular response. Name string // Description should provide a brief overview of the role of the // response. Description string - // StatusCode specifies the status recieved by this particular response. + // StatusCode specifies the status received by this particular response. StatusCode int // Headers covers any headers that may be returned from the response. diff --git a/docs/api/v2/errors.go b/docs/api/v2/errors.go index ece52a2c..97d6923a 100644 --- a/docs/api/v2/errors.go +++ b/docs/api/v2/errors.go @@ -84,7 +84,7 @@ var ( }) // ErrorCodeManifestUnverified is returned when the manifest fails - // signature verfication. + // signature verification. ErrorCodeManifestUnverified = errcode.Register(errGroup, errcode.ErrorDescriptor{ Value: "MANIFEST_UNVERIFIED", Message: "manifest failed signature verification", diff --git a/docs/handlers/api_test.go b/docs/handlers/api_test.go index 5fffaa5a..ef0425aa 100644 --- a/docs/handlers/api_test.go +++ b/docs/handlers/api_test.go @@ -1182,7 +1182,7 @@ func testManifestAPISchema2(t *testing.T, env *testEnv, imageName reference.Name manifest.Config.Digest = sampleConfigDigest manifest.Config.Size = int64(len(sampleConfig)) - // The manifest should still be invalid, because its layer doesnt exist + // The manifest should still be invalid, because its layer doesn't exist resp = putManifest(t, "putting missing layer manifest", manifestURL, schema2.MediaTypeManifest, manifest) defer resp.Body.Close() checkResponse(t, "putting missing layer manifest", resp, http.StatusBadRequest) @@ -1415,7 +1415,7 @@ func testManifestAPISchema2(t *testing.T, env *testEnv, imageName reference.Name t.Fatal("wrong number of History entries") } - // Don't check V1Compatibility fields becuase we're using randomly-generated + // Don't check V1Compatibility fields because we're using randomly-generated // layers. return args @@ -1641,7 +1641,7 @@ func testManifestAPIManifestList(t *testing.T, env *testEnv, args manifestArgs) t.Fatal("wrong number of History entries") } - // Don't check V1Compatibility fields becuase we're using randomly-generated + // Don't check V1Compatibility fields because we're using randomly-generated // layers. } diff --git a/docs/handlers/app.go b/docs/handlers/app.go index 370f63ef..2a60001f 100644 --- a/docs/handlers/app.go +++ b/docs/handlers/app.go @@ -405,7 +405,7 @@ func (app *App) configureEvents(configuration *configuration.Configuration) { sinks = append(sinks, endpoint) } - // NOTE(stevvooe): Moving to a new queueing implementation is as easy as + // NOTE(stevvooe): Moving to a new queuing implementation is as easy as // replacing broadcaster with a rabbitmq implementation. It's recommended // that the registry instances also act as the workers to keep deployment // simple. diff --git a/docs/handlers/helpers.go b/docs/handlers/helpers.go index 5a3c9984..fe44f557 100644 --- a/docs/handlers/helpers.go +++ b/docs/handlers/helpers.go @@ -35,7 +35,7 @@ func copyFullPayload(responseWriter http.ResponseWriter, r *http.Request, destWr // Read in the data, if any. copied, err := io.Copy(destWriter, r.Body) if clientClosed != nil && (err != nil || (r.ContentLength > 0 && copied < r.ContentLength)) { - // Didn't recieve as much content as expected. Did the client + // Didn't receive as much content as expected. Did the client // disconnect during the request? If so, avoid returning a 400 // error to keep the logs cleaner. select { diff --git a/docs/storage/driver/gcs/gcs.go b/docs/storage/driver/gcs/gcs.go index 0e3480f2..9de432b4 100644 --- a/docs/storage/driver/gcs/gcs.go +++ b/docs/storage/driver/gcs/gcs.go @@ -285,7 +285,7 @@ func (d *driver) WriteStream(context ctx.Context, path string, offset int64, rea if err != nil { return nn, err } - // wc was closed succesfully, so the temporary part exists, schedule it for deletion at the end + // wc was closed successfully, so the temporary part exists, schedule it for deletion at the end // of the function defer storageDeleteObject(gcsContext, d.bucket, partName) diff --git a/docs/storage/driver/storagedriver.go b/docs/storage/driver/storagedriver.go index dc8bdc8d..d5e6fe9f 100644 --- a/docs/storage/driver/storagedriver.go +++ b/docs/storage/driver/storagedriver.go @@ -133,7 +133,7 @@ func (err InvalidOffsetError) Error() string { } // Error is a catch-all error type which captures an error string and -// the driver type on which it occured. +// the driver type on which it occurred. type Error struct { DriverName string Enclosed error diff --git a/docs/storage/driver/testsuites/testsuites.go b/docs/storage/driver/testsuites/testsuites.go index b178cb3d..43d0811d 100644 --- a/docs/storage/driver/testsuites/testsuites.go +++ b/docs/storage/driver/testsuites/testsuites.go @@ -158,7 +158,7 @@ func (suite *DriverSuite) TestInvalidPaths(c *check.C) { for _, filename := range invalidFiles { err := suite.StorageDriver.PutContent(suite.ctx, filename, contents) - // only delete if file was succesfully written + // only delete if file was successfully written if err == nil { defer suite.deletePath(c, firstPart(filename)) } diff --git a/docs/storage/paths.go b/docs/storage/paths.go index 4d2d48c1..6ee54127 100644 --- a/docs/storage/paths.go +++ b/docs/storage/paths.go @@ -48,7 +48,7 @@ const ( // The storage backend layout is broken up into a content-addressable blob // store and repositories. The content-addressable blob store holds most data // throughout the backend, keyed by algorithm and digests of the underlying -// content. Access to the blob store is controled through links from the +// content. Access to the blob store is controlled through links from the // repository to blobstore. // // A repository is made up of layers, manifests and tags. The layers component @@ -301,7 +301,7 @@ type manifestRevisionLinkPathSpec struct { func (manifestRevisionLinkPathSpec) pathSpec() {} -// manifestSignaturesPathSpec decribes the path components for the directory +// manifestSignaturesPathSpec describes the path components for the directory // containing all the signatures for the target blob. Entries are named with // the underlying key id. type manifestSignaturesPathSpec struct { @@ -311,7 +311,7 @@ type manifestSignaturesPathSpec struct { func (manifestSignaturesPathSpec) pathSpec() {} -// manifestSignatureLinkPathSpec decribes the path components used to look up +// manifestSignatureLinkPathSpec describes the path components used to look up // a signature file by the hash of its blob. type manifestSignatureLinkPathSpec struct { name string