File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ On the first line, we have the definition for the decorator with its `func` argu
146146On the next line is the definition for the decorators _ inner function_ , which wraps the ` func ` argument.
147147Since the _ inner function_ wraps the decorator's ` func ` argument, it is passed the same argument that is passed to ` func ` .
148148Note that the wrapper doesn't have to use the same name for the argument that was defined in ` func ` .
149- The original function uses ` planet ` and the decorator uses ` world ` , and the decorater still works.
149+ The original function uses ` planet ` and the decorator uses ` world ` , and the decorator still works.
150150
151151The inner function returns either ` func ` or, if ` planet ` equals ` Pluto ` , it will print that Pluto is not a planet.
152152It could be coded to raise a ` ValueError ` instead.
You can’t perform that action at this time.
0 commit comments