mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-16 15:29:28 +00:00
drive: fix minor typos in comments
Signed-off-by: Craig Hesling <craig@hesling.com>
This commit is contained in:
parent
c76d075472
commit
ead6a72e45
@ -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:
|
||||
//
|
||||
// -- <StaticRoot>
|
||||
|
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user