Skip to content

Commit 340b9e8

Browse files
authored
Merge pull request #499 from manuothatceguy/fix/remove-non-code-from-code-block-python-decorators-blog
Fix: remove non code from code block python decorators blog
2 parents dabb74e + 44067b9 commit 340b9e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/blog/python-decorators-for-beginners.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ def slow_function():
7474
result = slow_function()
7575
# slow_function took 1.0041 seconds
7676
print(result) # Done!
77+
```
7778

7879
See the <router-link to="/cheatsheet/decorators">Decorators (cheatsheet)</router-link> for additional decorator templates and common patterns.
79-
```
80+
8081

8182
Notice how we use `*args` and `**kwargs` (see <router-link to="/cheatsheet/args-and-kwargs">Args & kwargs</router-link>)? This makes our decorator work with any function, regardless of how many arguments it takes.
8283

0 commit comments

Comments
 (0)