Skip to content

Commit 4aedc07

Browse files
bobahopkotp
authored andcommitted
Update concepts/decorators/about.md
Co-authored-by: Victor Goff <[email protected]>
1 parent bb1729a commit 4aedc07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concepts/decorators/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ On the first line, we have the definition for the decorator with its `func` argu
146146
On the next line is the definition for the decorators _inner function_, which wraps the `func` argument.
147147
Since the _inner function_ wraps the decorator's `func` argument, it is passed the same argument that is passed to `func`.
148148
Note 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

151151
The inner function returns either `func` or, if `planet` equals `Pluto`, it will print that Pluto is not a planet.
152152
It could be coded to raise a `ValueError` instead.

0 commit comments

Comments
 (0)