Fix call example

This commit is contained in:
mejrs 2021-12-22 12:12:16 +01:00
parent 6afd80a26f
commit 9512ce4e87
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
@Counter
def say_hello():
print("hello")
say_hello()
say_hello()
say_hello()
say_hello()
assert say_hello.count == 4

View File

@ -21,7 +21,7 @@ An example crate containing this pyclass can be found [here](https://github.com/
Python code:
```python
{{#include ../../../examples/decorator/src/test.py}}
{{#include ../../../examples/decorator/tests/example.py}}
```
Output: