Skip to content

Commit

Permalink
[readme] always "argument", not "parameter"
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 13, 2023
1 parent 1761245 commit 7f5d089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The behavior in Python is that the same initializer value is passed on every fun
invocation, so using mutable values produces the above results.

The coding pattern to work around the above is to use ``None`` as the initializer, and check for
the parameter value at the start of the function code:
the argument value at the start of the function code:

```python
>>> def f(x=None):
Expand Down Expand Up @@ -173,7 +173,7 @@ a function instead of a generator:
def get_session(uniqueid: int = __(make_unique_id)) -> Session:
```

The given function will be called once every time the ``uniqueid`` parameter is omitted.
The given function will be called once every time the ``uniqueid`` argument is omitted.

### About name choice

Expand Down

0 comments on commit 7f5d089

Please sign in to comment.