mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Fix typo.
Reported by Jon Tetlak on docs@
This commit is contained in:
parent
3874128519
commit
3df11b2bd6
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ The function below takes and returns a string and is annotated as follows::
|
||||||
def greeting(name: str) -> str:
|
def greeting(name: str) -> str:
|
||||||
return 'Hello ' + name
|
return 'Hello ' + name
|
||||||
|
|
||||||
In the function ``greeting``, the argument ``name`` is expected to by of type
|
In the function ``greeting``, the argument ``name`` is expected to be of type
|
||||||
:class:`str` and the return type :class:`str`. Subtypes are accepted as
|
:class:`str` and the return type :class:`str`. Subtypes are accepted as
|
||||||
arguments.
|
arguments.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue