cache/filecache: Spelling corrections
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Nov 2018 17:16:53 +0000 (18:16 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Nov 2018 17:16:53 +0000 (18:16 +0100)
cache/filecache/filecache.go

index 45359f574a6d463d6e1e9485196cc3b450daf898..e299258d7dde6dcd5db79032b816a93f22d9acab 100644 (file)
@@ -115,7 +115,7 @@ func (l *lockedFile) Close() error {
        return l.File.Close()
 }
 
-// GetWriteCloser returns a transactional writer into the cache.
+// WriteCloser returns a transactional writer into the cache.
 // It's important that it's closed when done.
 func (c *Cache) WriteCloser(id string) (ItemInfo, io.WriteCloser, error) {
        id = cleanID(id)
@@ -260,7 +260,7 @@ func (c *Cache) Get(id string) (ItemInfo, io.ReadCloser, error) {
        return info, r, nil
 }
 
-// get gets the file with the given id. If it's expired, it will
+// getOrRemove gets the file with the given id. If it's expired, it will
 // be removed.
 func (c *Cache) getOrRemove(id string) hugio.ReadSeekCloser {
        if c.maxAge == 0 {
@@ -316,7 +316,7 @@ func (f Caches) Get(name string) *Cache {
        return f[strings.ToLower(name)]
 }
 
-// GetJSOnCache gets the file cache for getJSON.
+// GetJSONCache gets the file cache for getJSON.
 func (f Caches) GetJSONCache() *Cache {
        return f[cacheKeyGetJSON]
 }