diff options
author | 2023-06-20 14:45:50 +0800 | |
---|---|---|
committer | 2023-06-20 14:45:50 +0800 | |
commit | bc6a21ce8424eea2a2716f282e634f5e137ed1e5 (patch) | |
tree | a5730a3fe04c0407a9b07dd562aa88f0a2e807fc | |
parent | Increase help thread timeout 30 -> 60 (#2641) (diff) |
Fix errors in the positional-keyword tag
-rw-r--r-- | bot/resources/tags/positional-keyword.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/resources/tags/positional-keyword.md b/bot/resources/tags/positional-keyword.md index 8b4cf5611..1325fefc2 100644 --- a/bot/resources/tags/positional-keyword.md +++ b/bot/resources/tags/positional-keyword.md @@ -9,7 +9,7 @@ Functions can take two different kinds of arguments. A positional argument is ju >>> print('Hello', 'world!', sep=', ') Hello, world! ``` -The first two strings `'Hello'` and `world!'` are positional arguments. +The first two strings `'Hello'` and `'world!'` are positional arguments. The `sep=', '` is a keyword argument. **Note** @@ -21,7 +21,7 @@ def sum(a, b=1): sum(1, b=5) sum(1, 5) # same as above ``` -[Somtimes this is forced](https://peps.python.org/pep-0570/#history-of-positional-only-parameter-semantics-in-python), in the case of the `pow()` function. +[Sometimes this is forced](https://peps.python.org/pep-0570/#history-of-positional-only-parameter-semantics-in-python), in the case of the `pow()` function. The reverse is also true: ```py |