make the function *call* more visible

It is easy to overlook the () in that appending operation, I propose adding a short comment.
This commit is contained in:
Hannes 2018-12-05 11:23:06 +01:00 committed by GitHub
parent d7477885b8
commit e4f8fc2c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
README.md vendored
View File

@ -555,7 +555,7 @@ for x in range(7):
def some_func():
return x
funcs.append(some_func)
results.append(some_func())
results.append(some_func()) # note the function call here
funcs_results = [func() for func in funcs]
```