From 719241171df696aeca66a02412a33cefac8c9a5c Mon Sep 17 00:00:00 2001 From: joe2far Date: Tue, 7 Jun 2016 11:50:48 +0100 Subject: [PATCH] Fixed typos in README and docstring --- bash_completions.md | 4 ++-- doc/man_docs.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bash_completions.md b/bash_completions.md index 84d5b01..6e3b71f 100644 --- a/bash_completions.md +++ b/bash_completions.md @@ -117,7 +117,7 @@ cmd := &cobra.Command{ ``` The aliases are not shown to the user on tab completion, but they are accepted as valid nouns by -the completion aglorithm if entered manually, e.g. in: +the completion algorithm if entered manually, e.g. in: ```bash # kubectl get rc [tab][tab] @@ -175,7 +175,7 @@ So while there are many other files in the CWD it only shows me subdirs and thos # Specifiy custom flag completion -Similar to the filename completion and filtering usingn cobra.BashCompFilenameExt, you can specifiy +Similar to the filename completion and filtering using cobra.BashCompFilenameExt, you can specifiy a custom flag completion function with cobra.BashCompCustom: ```go diff --git a/doc/man_docs.go b/doc/man_docs.go index a98674b..5364326 100644 --- a/doc/man_docs.go +++ b/doc/man_docs.go @@ -28,7 +28,7 @@ import ( "github.com/spf13/pflag" ) -// GenManTree will generate a man page for this command and all decendants +// GenManTree will generate a man page for this command and all descendants // in the directory given. The header may be nil. This function may not work // correctly if your command names have - in them. If you have `cmd` with two // subcmds, `sub` and `sub-third`. And `sub` has a subcommand called `third`