From d0c2644870d873080734367010e57b96a0234259 Mon Sep 17 00:00:00 2001 From: Albert Date: Fri, 5 Aug 2016 12:25:24 +0500 Subject: [PATCH] Add dot in BindPFlag comment --- viper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viper.go b/viper.go index ba3c190..e39a564 100644 --- a/viper.go +++ b/viper.go @@ -668,8 +668,8 @@ func (v *Viper) BindPFlags(flags *pflag.FlagSet) (err error) { return v.BindFlagValues(pflagValueSet{flags}) } -// Bind a specific key to a pflag (as used by cobra) -// Example(where serverCmd is a Cobra instance): +// Bind a specific key to a pflag (as used by cobra). +// Example (where serverCmd is a Cobra instance): // // serverCmd.Flags().Int("port", 1138, "Port to run Application server on") // Viper.BindPFlag("port", serverCmd.Flags().Lookup("port"))