From 3c531fea6690dc85011ba467bb83b252b8eea708 Mon Sep 17 00:00:00 2001 From: Hang Yan Date: Sun, 1 Apr 2018 16:01:51 +0800 Subject: [PATCH] Fix typos in comments --- cmd/root.go | 2 +- pkg/loader/compose/compose.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index eba454e1..005d28f6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -54,7 +54,7 @@ var RootCmd = &cobra.Command{ Use: "kompose", Short: "A tool helping Docker Compose users move to Kubernetes", Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`, - // PersitentPreRun will be "inherited" by all children and ran before *every* command unless + // PersistentPreRun will be "inherited" by all children and ran before *every* command unless // the child has overridden the functionality. This functionality was implemented to check / modify // all global flag calls regardless of app call. PersistentPreRun: func(cmd *cobra.Command, args []string) { diff --git a/pkg/loader/compose/compose.go b/pkg/loader/compose/compose.go index e019c110..467c26b4 100644 --- a/pkg/loader/compose/compose.go +++ b/pkg/loader/compose/compose.go @@ -110,7 +110,7 @@ func checkUnsupportedKey(composeProject *project.Project) []string { continue } } - //get yaml tag name instad of variable name + //get yaml tag name instead of variable name yamlTagName := strings.Split(f.Tag("yaml"), ",")[0] if f.Name() == "Networks" { // networks always contains one default element, even it isn't declared in compose v2.