aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt/format.go
diff options
context:
space:
mode:
authorebiggers <ebiggers@google.com>2019-09-08 19:46:59 -0700
committerJoseph Richey <joerichey@google.com>2019-09-08 19:46:59 -0700
commit6445dad7d66fa6a1867090fcd9602c98863649f6 (patch)
treec0e5209f018a50ee8b0a1277cc7b06266eff18c1 /cmd/fscrypt/format.go
parent28b29d1c97ffd97671186b5e1fae37b64424f9ee (diff)
Fix various typos and grammatical errors (#141)
These were found by a combination of manual review and a custom script that checks for common errors. Also removed an outdated sentence from the comment for setupBefore().
Diffstat (limited to 'cmd/fscrypt/format.go')
-rw-r--r--cmd/fscrypt/format.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/fscrypt/format.go b/cmd/fscrypt/format.go
index ef009d3..c2a4fce 100644
--- a/cmd/fscrypt/format.go
+++ b/cmd/fscrypt/format.go
@@ -74,7 +74,7 @@ func init() {
}
-// Flags that conform to this interface can be used with an urfave/cli
+// Flags that conform to this interface can be used with a urfave/cli
// application and can be printed in the correct format.
type prettyFlag interface {
cli.Flag
@@ -111,8 +111,8 @@ func longDisplay(f prettyFlag, defaultString ...string) string {
usage += fmt.Sprintf(" (default: %v)", defaultString[0])
}
- // We pad the the shortDisplay on the right with enough spaces to equal
- // the longest flag's display
+ // We pad the shortDisplay on the right with enough spaces to equal the
+ // longest flag's display
shortDisp := shortDisplay(f)
length := utf8.RuneCountInString(shortDisp)
shortDisp += strings.Repeat(" ", maxShortDisplay-length)