From ead6a72e45fd77f4d805ae3251c4f421ae0ee688 Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Wed, 2 Apr 2025 21:20:40 -0700 Subject: [PATCH] drive: fix minor typos in comments Signed-off-by: Craig Hesling --- drive/driveimpl/dirfs/dirfs.go | 2 +- drive/driveimpl/fileserver.go | 2 +- drive/remote_permissions.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drive/driveimpl/dirfs/dirfs.go b/drive/driveimpl/dirfs/dirfs.go index c1f28bb9d..50a3330a9 100644 --- a/drive/driveimpl/dirfs/dirfs.go +++ b/drive/driveimpl/dirfs/dirfs.go @@ -44,7 +44,7 @@ func (c *Child) isAvailable() bool { // Any attempts to perform operations on paths inside of children will result // in a panic, as these are not expected to be performed on this FS. // -// An FS an optionally have a StaticRoot, which will insert a folder with that +// An FS can optionally have a StaticRoot, which will insert a folder with that // StaticRoot into the tree, like this: // // -- diff --git a/drive/driveimpl/fileserver.go b/drive/driveimpl/fileserver.go index 0067c1cc7..ef94b0643 100644 --- a/drive/driveimpl/fileserver.go +++ b/drive/driveimpl/fileserver.go @@ -61,7 +61,7 @@ func NewFileServer() (*FileServer, error) { }, nil } -// generateSecretToken generates a hex-encoded 256 bit secet. +// generateSecretToken generates a hex-encoded 256 bit secret. func generateSecretToken() (string, error) { tokenBytes := make([]byte, 32) _, err := rand.Read(tokenBytes) diff --git a/drive/remote_permissions.go b/drive/remote_permissions.go index d3d41c6ec..420eff9a0 100644 --- a/drive/remote_permissions.go +++ b/drive/remote_permissions.go @@ -32,7 +32,7 @@ type grant struct { Access string } -// ParsePermissions builds a Permissions map from a lis of raw grants. +// ParsePermissions builds a Permissions map from a list of raw grants. func ParsePermissions(rawGrants [][]byte) (Permissions, error) { permissions := make(Permissions) for _, rawGrant := range rawGrants {