summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-07-15 16:22:58 -0600
committerkotfu <kotfu@kotfu.net>2018-07-15 16:22:58 -0600
commitb93d66e7049df61c4c20d9a4dabf52dc1a3bea1f (patch)
tree003fd6aa945b32988ae263c641abe859543fee71 /docs
parent7a2f0a210cbbfd53bb99d650c6e92d1ff2206dbd (diff)
downloadcmd2-git-b93d66e7049df61c4c20d9a4dabf52dc1a3bea1f.tar.gz
Fix typo.
Diffstat (limited to 'docs')
-rw-r--r--docs/hooks.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/hooks.rst b/docs/hooks.rst
index a6a8d80a..bb079457 100644
--- a/docs/hooks.rst
+++ b/docs/hooks.rst
@@ -249,10 +249,11 @@ attribute that describes the command which was executed. If your postcommand
hook method gets called, you are guaranteed that the command method was called,
and that it didn't raise an exception.
-If any postcommand hook raises an exception, the exception will be displayed to the user, and no further postcommand hook methods
-will be called. Command finalization hooks, if any, will be called.
+If any postcommand hook raises an exception, the exception will be displayed to
+the user, and no further postcommand hook methods will be called. Command
+finalization hooks, if any, will be called.
-After all registered precommand hooks have been called,
+After all registered postcommand hooks have been called,
``self.postcmd(statement)`` will be called to retain full backward compatibility
with ``cmd.Cmd``.