diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2016-02-02 17:04:41 -0600 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2016-02-02 17:04:41 -0600 |
commit | 1b51c7fd240145bc7aaf830dfb9dfed87acb1fd6 (patch) | |
tree | 6c17ac81ab021e2e02cbbd436e9ec97390d318a4 | |
parent | 56d6c1809d54ce62235d85e8572e638347736555 (diff) | |
download | cpython-1b51c7fd240145bc7aaf830dfb9dfed87acb1fd6.tar.gz |
Fix typo.
Reported by Jon Tetlak on docs@
-rw-r--r-- | Doc/library/typing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 0fe1167137..41f594ecc4 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -20,7 +20,7 @@ The function below takes and returns a string and is annotated as follows:: def greeting(name: str) -> str: 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 arguments. |