diff --git a/source/c09/p05_define_decorator_with_user_adjustable_attributes.rst b/source/c09/p05_define_decorator_with_user_adjustable_attributes.rst index b7e41b07..d9c19329 100644 --- a/source/c09/p05_define_decorator_with_user_adjustable_attributes.rst +++ b/source/c09/p05_define_decorator_with_user_adjustable_attributes.rst @@ -10,7 +10,7 @@ ---------- 解决方案 ---------- -引入一个访问函数,使用 ``nolocal`` 来修改内部变量。 +引入一个访问函数,使用 ``nonlocal`` 来修改内部变量。 然后这个访问函数被作为一个属性赋值给包装函数。 .. code-block:: python