Skip to content

Commit b8254f6

Browse files
authored
Merge pull request yidao620c#186 from Dectinc/master
fix typo and indentation error
2 parents 28915e6 + 33f2a93 commit b8254f6

2 files changed

+2
-2
lines changed

source/c09/p04_define_decorator_that_takes_arguments.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
解决方案
1212
----------
1313
我们用一个例子详细阐述下接受参数的处理过程。
14-
假设你想写一个装饰器,给函数添加日志功能,当时允许用户指定日志的级别和其他的选项
14+
假设你想写一个装饰器,给函数添加日志功能,同时允许用户指定日志的级别和其他的选项
1515
下面是这个装饰器的定义和使用示例:
1616

1717
.. code-block:: python

source/c09/p11_write_decorators_that_add_arguments_to_functions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
3030
>>> @optional_debug
3131
... def spam(a,b,c):
32-
... print(a,b,c)
32+
... print(a,b,c)
3333
...
3434
>>> spam(1,2,3)
3535
1 2 3

0 commit comments

Comments
 (0)