From 3bf7b11f2336b524088eae78495e4e499480fc67 Mon Sep 17 00:00:00 2001 From: Carl Dressler <67071898+carldressler@users.noreply.github.com> Date: Tue, 20 Apr 2021 15:52:47 +0200 Subject: [PATCH] Update decorators.rst --- decorators.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decorators.rst b/decorators.rst index 30509fe..c40c395 100644 --- a/decorators.rst +++ b/decorators.rst @@ -151,14 +151,14 @@ previous decorator and make a little bit more usable program: def a_new_decorator(a_func): - def wrapTheFunction(): + def wrap_the_function(): print("I am doing some boring work before executing a_func()") a_func() print("I am doing some boring work after executing a_func()") - return wrapTheFunction + return wrap_the_function def a_function_requiring_decoration(): print("I am the function which needs some decoration to remove my foul smell")