From 3ad90f5e83658a6a93cdea5b8f1b2521d2c51834 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Thu, 7 Mar 2019 02:35:39 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- pkg/transformer/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/transformer/utils.go b/pkg/transformer/utils.go index e7488d676..1e5e4ed77 100644 --- a/pkg/transformer/utils.go +++ b/pkg/transformer/utils.go @@ -176,12 +176,12 @@ func formatProviderName(provider string) string { // EnvSort struct type EnvSort []api.EnvVar -// returns the number of elements in the collection. +// Len returns the number of elements in the collection. func (env EnvSort) Len() int { return len(env) } -// returns whether the element with index i should sort before +// Less returns whether the element with index i should sort before // the element with index j. func (env EnvSort) Less(i, j int) bool { return env[i].Name < env[j].Name