Skip to content
Myr

chore: remove repetitive words (#2122)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by racerole · committed by GitHub · parent c69ae4c · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: racerole <jiangyifeng@outlook.com>

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:doc/md_docs.go+1 added-1 removed
126 unmodified lines
127 emptyStr := func(s string) string { return "" }128 return GenMarkdownTreeCustom(cmd, dir, emptyStr, identity)129}130131// GenMarkdownTreeCustom is the the same as GenMarkdownTree, but131// GenMarkdownTreeCustom is the same as GenMarkdownTree, but132// with custom filePrepender and linkHandler.133func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender, linkHandler func(string) string) error {134 for _, c := range cmd.Commands() {135 if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {
23 unmodified lines
modified:doc/rest_docs.go+1 added-1 removed
138 unmodified lines
139 emptyStr := func(s string) string { return "" }140 return GenReSTTreeCustom(cmd, dir, emptyStr, defaultLinkHandler)141}142143// GenReSTTreeCustom is the the same as GenReSTTree, but143// GenReSTTreeCustom is the same as GenReSTTree, but144// with custom filePrepender and linkHandler.145func GenReSTTreeCustom(cmd *cobra.Command, dir string, filePrepender func(string) string, linkHandler func(string, string) string) error {146 for _, c := range cmd.Commands() {147 if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {
39 unmodified lines