From bc6a21ce8424eea2a2716f282e634f5e137ed1e5 Mon Sep 17 00:00:00 2001 From: int <111111938+interrrp@users.noreply.github.com> Date: Tue, 20 Jun 2023 14:45:50 +0800 Subject: Fix errors in the positional-keyword tag --- bot/resources/tags/positional-keyword.md | 4 ++-- 1 file 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 -- cgit v1.2.3