From 50c77ecec0068c9aef9d90ae0fd0fdf410041da3 Mon Sep 17 00:00:00 2001 From: jszwedko Date: Fri, 20 Feb 2015 16:21:27 -0500 Subject: [PATCH] Fix comments for .After field on Command and App --- app.go | 2 +- command.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index ab49ec0..928983e 100644 --- a/app.go +++ b/app.go @@ -35,7 +35,7 @@ type App struct { // If a non-nil error is returned, no subcommands are run Before func(context *Context) error // An action to execute after any subcommands are run, but after the subcommand has finished - // It is run regardless of Because() result + // It is run even if Action() panics After func(context *Context) error // The action to execute when no subcommands are specified Action func(context *Context) diff --git a/command.go b/command.go index 7c02e47..5747e52 100644 --- a/command.go +++ b/command.go @@ -22,7 +22,7 @@ type Command struct { // If a non-nil error is returned, no sub-subcommands are run Before func(context *Context) error // An action to execute after any subcommands are run, but after the subcommand has finished - // It is run regardless of Because() result + // It is run even if Action() panics After func(context *Context) error // The function to call when this command is invoked Action func(context *Context)