From 74f429a5ad400894cd0a9cf96a6204696887b37a Mon Sep 17 00:00:00 2001
From: Jesse Brown <jabrown85@gmail.com>
Date: Fri, 5 Apr 2019 14:20:20 -0500
Subject: [PATCH] Fix typo: offest -> offset

Signed-off-by: Jesse Brown <jabrown85@gmail.com>
---
 registry/handlers/blobupload.go                  | 2 +-
 registry/storage/driver/testsuites/testsuites.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/registry/handlers/blobupload.go b/registry/handlers/blobupload.go
index b6bfe3022..3dc5b75fb 100644
--- a/registry/handlers/blobupload.go
+++ b/registry/handlers/blobupload.go
@@ -77,7 +77,7 @@ func blobUploadDispatcher(ctx *Context, r *http.Request) http.Handler {
 
 		if size := upload.Size(); size != buh.State.Offset {
 			defer upload.Close()
-			dcontext.GetLogger(ctx).Errorf("upload resumed at wrong offest: %d != %d", size, buh.State.Offset)
+			dcontext.GetLogger(ctx).Errorf("upload resumed at wrong offset: %d != %d", size, buh.State.Offset)
 			return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
 				buh.Errors = append(buh.Errors, v2.ErrorCodeBlobUploadInvalid.WithDetail(err))
 				upload.Cancel(buh)
diff --git a/registry/storage/driver/testsuites/testsuites.go b/registry/storage/driver/testsuites/testsuites.go
index 5e37c5f3c..7cf7b379e 100644
--- a/registry/storage/driver/testsuites/testsuites.go
+++ b/registry/storage/driver/testsuites/testsuites.go
@@ -345,7 +345,7 @@ func (suite *DriverSuite) TestReaderWithOffset(c *check.C) {
 	c.Assert(err, check.IsNil)
 	c.Assert(readContents, check.DeepEquals, contentsChunk3)
 
-	// Ensure we get invalid offest for negative offsets.
+	// Ensure we get invalid offset for negative offsets.
 	reader, err = suite.StorageDriver.Reader(suite.ctx, filename, -1)
 	c.Assert(err, check.FitsTypeOf, storagedriver.InvalidOffsetError{})
 	c.Assert(err.(storagedriver.InvalidOffsetError).Offset, check.Equals, int64(-1))