diff --git a/dir/fs.go b/dir/fs.go index 8803258a..93da420e 100644 --- a/dir/fs.go +++ b/dir/fs.go @@ -61,8 +61,7 @@ func PluginFS() SysFS { // CacheFS is the cache SysFS. // -// To get the directory for crl file cache, one should use -// `CacheFS().SysFS(PathCRLFileCache)`. +// To get the root of crl file cache, use `CacheFS().SysFS(PathCRLCache)`. func CacheFS() SysFS { return NewSysFS(userCacheDirPath()) } diff --git a/verifier/crl/crl.go b/verifier/crl/crl.go index c55b8357..e736bc28 100644 --- a/verifier/crl/crl.go +++ b/verifier/crl/crl.go @@ -69,7 +69,7 @@ type fileCacheContent struct { // NewFileCache creates a FileCache with root as the root directory // -// An example for root is `dir.CacheFS().SysPath(dir.PathCRLFileCache)` +// An example for root is `dir.CacheFS().SysPath(dir.PathCRLCache)` func NewFileCache(root string) (*FileCache, error) { if err := os.MkdirAll(root, 0700); err != nil { return nil, fmt.Errorf("failed to create crl file cache: %w", err)