mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2024-09-11 20:17:08 +03:00
make the function *call* more visible (#104)
It is easy to overlook the () in that appending operation, I propose adding a short comment.
This commit is contained in:
parent
d7477885b8
commit
b0e7a816ec
2
README.md
vendored
2
README.md
vendored
@ -555,7 +555,7 @@ for x in range(7):
|
|||||||
def some_func():
|
def some_func():
|
||||||
return x
|
return x
|
||||||
funcs.append(some_func)
|
funcs.append(some_func)
|
||||||
results.append(some_func())
|
results.append(some_func()) # note the function call here
|
||||||
|
|
||||||
funcs_results = [func() for func in funcs]
|
funcs_results = [func() for func in funcs]
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user