From 6df14d7796cac334c6cfd58f02281cbd18c3512a Mon Sep 17 00:00:00 2001 From: linghuying <1599935829@qq.com> Date: Thu, 20 Mar 2025 16:07:10 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: linghuying <1599935829@qq.com> --- chains/tendermint/cmd/light.go | 2 +- cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chains/tendermint/cmd/light.go b/chains/tendermint/cmd/light.go index d9be3cad..41470adb 100644 --- a/chains/tendermint/cmd/light.go +++ b/chains/tendermint/cmd/light.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/cobra" ) -// chainCmd represents the keys command +// lightCmd represents the keys command func lightCmd(ctx *config.Context) *cobra.Command { cmd := &cobra.Command{ Use: "light", diff --git a/cmd/root.go b/cmd/root.go index 43aed7e0..9c6187d2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -108,7 +108,7 @@ func Execute(modules ...config.ModuleI) error { return rootCmd.Execute() } -// readLineFromBuf reads one line from stdin. +// readStdin reads one line from stdin. func readStdin() (string, error) { str, err := bufio.NewReader(os.Stdin).ReadString('\n') return strings.TrimSpace(str), err