Fix call example
This commit is contained in:
parent
6afd80a26f
commit
9512ce4e87
|
@ -0,0 +1,11 @@
|
|||
@Counter
|
||||
def say_hello():
|
||||
print("hello")
|
||||
|
||||
|
||||
say_hello()
|
||||
say_hello()
|
||||
say_hello()
|
||||
say_hello()
|
||||
|
||||
assert say_hello.count == 4
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue