drive: fix minor typos in comments

Signed-off-by: Craig Hesling <craig@hesling.com>
This commit is contained in:
Craig Hesling 2025-04-02 21:20:40 -07:00 committed by Brad Fitzpatrick
parent c76d075472
commit ead6a72e45
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ func (c *Child) isAvailable() bool {
// Any attempts to perform operations on paths inside of children will result // 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. // 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: // StaticRoot into the tree, like this:
// //
// -- <StaticRoot> // -- <StaticRoot>

View File

@ -61,7 +61,7 @@ func NewFileServer() (*FileServer, error) {
}, nil }, nil
} }
// generateSecretToken generates a hex-encoded 256 bit secet. // generateSecretToken generates a hex-encoded 256 bit secret.
func generateSecretToken() (string, error) { func generateSecretToken() (string, error) {
tokenBytes := make([]byte, 32) tokenBytes := make([]byte, 32)
_, err := rand.Read(tokenBytes) _, err := rand.Read(tokenBytes)

View File

@ -32,7 +32,7 @@ type grant struct {
Access string 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) { func ParsePermissions(rawGrants [][]byte) (Permissions, error) {
permissions := make(Permissions) permissions := make(Permissions)
for _, rawGrant := range rawGrants { for _, rawGrant := range rawGrants {