Skip to content

Commit

Permalink
Fix func name referenced in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed May 27, 2023
1 parent 24fa0fd commit a35e560
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (a *App) RunContext(ctx context.Context, arguments []string) (err error) {
}

// RunAsSubcommand is for legacy/compatibility purposes only. New code should only
// use App.RunContextMost. This function is slated to be removed in v3
// use App.RunContext. This function is slated to be removed in v3.
func (a *App) RunAsSubcommand(ctx *Context) (err error) {
a.Setup()

Expand Down
2 changes: 1 addition & 1 deletion godoc-current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (a *App) RunAndExitOnError()

func (a *App) RunAsSubcommand(ctx *Context) (err error)
RunAsSubcommand is for legacy/compatibility purposes only. New code should
only use App.RunContextMost. This function is slated to be removed in v3
only use App.RunContext. This function is slated to be removed in v3.

func (a *App) RunContext(ctx context.Context, arguments []string) (err error)
RunContext is like Run except it takes a Context that will be passed to
Expand Down
2 changes: 1 addition & 1 deletion testdata/godoc-v2.x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (a *App) RunAndExitOnError()

func (a *App) RunAsSubcommand(ctx *Context) (err error)
RunAsSubcommand is for legacy/compatibility purposes only. New code should
only use App.RunContextMost. This function is slated to be removed in v3
only use App.RunContext. This function is slated to be removed in v3.

func (a *App) RunContext(ctx context.Context, arguments []string) (err error)
RunContext is like Run except it takes a Context that will be passed to
Expand Down

0 comments on commit a35e560

Please sign in to comment.