aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkfeline <darkfeline@felesatra.moe>2022-11-16 16:00:06 -0800
committerGitHub <noreply@github.com>2022-11-16 16:00:06 -0800
commitc9109cd15e4d71bea15fea5231b0ac57203cb36c (patch)
treedc9cf42074b1d5c80a0d8309c097428394b3c680
parent24aea2b9b9c12400919203843c92ef808c7ad560 (diff)
downloadgo-subcommands-upstream-master.tar.gz
Fix comment for Alias (#36)upstream-master
-rw-r--r--subcommands.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcommands.go b/subcommands.go
index 39268f7..bbc5f0f 100644
--- a/subcommands.go
+++ b/subcommands.go
@@ -440,7 +440,7 @@ type aliaser struct {
func (a *aliaser) Name() string { return a.alias }
-// Alias returns a Command alias which implements a "commands" subcommand.
+// Alias returns a Command alias with the given name.
func Alias(alias string, cmd Command) Command {
return &aliaser{alias, cmd}
}