Skip to content

Commit 0609eae

Browse files
committed
Applied edits from code review.
1 parent 8cf0e0e commit 0609eae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

concepts/decorators/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ Since the _inner function_ wraps the decorator's `func` argument, it is passed t
149149
Note that the wrapper doesn't have to use the same name for the argument that was defined in `func`.
150150
The original function uses `planet` and the decorator uses `world` — and the decorator still works.
151151

152-
The _inner function_ returns either `func` or if `world` equals "Pluto", it will print that Pluto is not a planet.
152+
The inner function returns either funcor if `world == "Pluto"` — prints that Pluto is not a planet.
153153
It could be coded to raise a `ValueError` instead.
154154
So, the _inner function_ wraps `func`, and returns either `func` or does something that substitutes for what `func` would do.
155155
The decorator returns its _inner function_.
156-
The _inner_function_ may or may not return the original, passed-in function.
157-
Depending on what code conditionally executes in the wrapper function or _inner_function_, `func` may be returned, an error could be raised, or a value of `func`'s return type could be returned.
156+
The _inner function_ may or may not return the original, passed-in function.
157+
Depending on what code conditionally executes in the wrapper function or _inner function_, `func` may be returned, an error could be raised, or a value of `func`'s return type could be returned.
158158

159159
### Decorating a Function that Takes an Arbitrary Number of Arguments
160160

0 commit comments

Comments
 (0)