summaryrefslogtreecommitdiffstats
path: root/modules/lfs
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-03-14 20:52:01 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-15 08:52:01 +0800
commit021904e4e65804baa67b38e193e15aa37a391c60 (patch)
tree5c4f74764048eadd39a51c1b27e9c4937a0d236b /modules/lfs
parentec0ae5d50c59315a3c597b1cf24d4c5508c718e5 (diff)
downloadgitea-021904e4e65804baa67b38e193e15aa37a391c60.tar.gz
gitea-021904e4e65804baa67b38e193e15aa37a391c60.zip
Fix typos in models/ and modules/ (#1248)
Diffstat (limited to 'modules/lfs')
-rw-r--r--modules/lfs/content_store.go2
-rw-r--r--modules/lfs/server.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go
index 7a1f1b44b5..94bb10136f 100644
--- a/modules/lfs/content_store.go
+++ b/modules/lfs/content_store.go
@@ -20,7 +20,7 @@ type ContentStore struct {
BasePath string
}
-// Get takes a Meta object and retreives the content from the store, returning
+// Get takes a Meta object and retrieves the content from the store, returning
// it as an io.Reader. If fromByte > 0, the reader starts from that byte
func (s *ContentStore) Get(meta *models.LFSMetaObject, fromByte int64) (io.ReadCloser, error) {
path := filepath.Join(s.BasePath, transformKey(meta.Oid))
diff --git a/modules/lfs/server.go b/modules/lfs/server.go
index 782d972fa9..44ab082867 100644
--- a/modules/lfs/server.go
+++ b/modules/lfs/server.go
@@ -50,7 +50,7 @@ type BatchResponse struct {
Objects []*Representation `json:"objects"`
}
-// Representation is object medata as seen by clients of the lfs server.
+// Representation is object metadata as seen by clients of the lfs server.
type Representation struct {
Oid string `json:"oid"`
Size int64 `json:"size"`