]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏️ Fix typos in `typing_doc` page (#10162)
authorTimothée Mazzucotelli <pawamoy@pm.me>
Mon, 28 Aug 2023 12:48:16 +0000 (14:48 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Aug 2023 12:48:16 +0000 (14:48 +0200)
typing_doc.md

index e8cc1f00554566eb7252df2a91c0b314b254d6f0..97eff22d1fb203391806ed3bd2841b7fedbf39db 100644 (file)
@@ -113,7 +113,7 @@ When creating a type alias, like:
 Username = Annotated[str, doc("The name of a user in the system")]
 ```
 
-...the documentation would be considered to be carried by the parameter annotated with `Foo`.
+...the documentation would be considered to be carried by the parameter annotated with `Username`.
 
 So, in a function like:
 
@@ -127,7 +127,7 @@ def hi(to: Username) -> None: ...
 def hi(to: Annotated[str, doc("The name of a user in the system")]) -> None: ...
 ```
 
-Nevertheless, implementers would not be required to support type aliases outside of the final type annotation to be conformant with this specification, as it could require more complex derefrenecing logic.
+Nevertheless, implementers would not be required to support type aliases outside of the final type annotation to be conformant with this specification, as it could require more complex dereferencing logic.
 
 #### Annotating Type Parameters