From 31694f19adeeaeb0a0e5fe95441b390d757753d2 Mon Sep 17 00:00:00 2001 From: Johanan Liebermann Date: Wed, 21 Jun 2017 20:26:46 +0300 Subject: [PATCH] Add missing 'and' in comment --- cobra/cmd/init.go | 2 +- cobra/cmd/testdata/root.go.golden | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cobra/cmd/init.go b/cobra/cmd/init.go index 4e7ebdb..149aabe 100644 --- a/cobra/cmd/init.go +++ b/cobra/cmd/init.go @@ -165,7 +165,7 @@ to quickly create a Cobra application.` + "`" + `, // Run: func(cmd *cobra.Command, args []string) { }, } -// Execute adds all child commands to the root command sets flags appropriately. +// Execute adds all child commands to the root command and sets flags appropriately. // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { if err := RootCmd.Execute(); err != nil { diff --git a/cobra/cmd/testdata/root.go.golden b/cobra/cmd/testdata/root.go.golden index 0085d5a..ecc8760 100644 --- a/cobra/cmd/testdata/root.go.golden +++ b/cobra/cmd/testdata/root.go.golden @@ -39,7 +39,7 @@ to quickly create a Cobra application.`, // Run: func(cmd *cobra.Command, args []string) { }, } -// Execute adds all child commands to the root command sets flags appropriately. +// Execute adds all child commands to the root command and sets flags appropriately. // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { if err := RootCmd.Execute(); err != nil {