From 1f032778113bf30d1d6be4a918b87653c48b5812 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 20 Nov 2015 15:23:16 -0700 Subject: [PATCH] Fix minor typos in cobra_test.go --- cobra_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cobra_test.go b/cobra_test.go index d89659b0..e4138802 100644 --- a/cobra_test.go +++ b/cobra_test.go @@ -96,7 +96,7 @@ var cmdTimes = &Command{ var cmdRootNoRun = &Command{ Use: "cobra-test", - Short: "The root can run it's own function", + Short: "The root can run its own function", Long: "The root description for help", PersistentPreRun: func(cmd *Command, args []string) { rootPersPre = args @@ -111,7 +111,7 @@ var cmdRootSameName = &Command{ var cmdRootWithRun = &Command{ Use: "cobra-test", - Short: "The root can run it's own function", + Short: "The root can run its own function", Long: "The root description for help", Run: func(cmd *Command, args []string) { tr = args @@ -637,7 +637,7 @@ func TestSubcommandArgEvaluation(t *testing.T) { func TestPersistentFlags(t *testing.T) { fullSetupTest("echo -s something -p more here") - // persistentFlag should act like normal flag on it's own command + // persistentFlag should act like normal flag on its own command if strings.Join(te, " ") != "more here" { t.Errorf("flags didn't leave proper args remaining..%s given", te) } @@ -648,7 +648,7 @@ func TestPersistentFlags(t *testing.T) { t.Errorf("persistent bool flag not parsed correctly. Expected true, had %v", flagbp) } - // persistentFlag should act like normal flag on it's own command + // persistentFlag should act like normal flag on its own command fullSetupTest("echo times -s again -c -p test here") if strings.Join(tt, " ") != "test here" {