]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Fix typo in docs/testclient.md (#1429)
authorSebastian Marines <18373185+sebastianmarines@users.noreply.github.com>
Wed, 26 Jan 2022 10:34:25 +0000 (04:34 -0600)
committerGitHub <noreply@github.com>
Wed, 26 Jan 2022 10:34:25 +0000 (11:34 +0100)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
docs/testclient.md

index a1861efec77256249ca42e5751b98a99cefec810..d8d4b256edb7217dda89d1039632ef96244d2b4e 100644 (file)
@@ -107,7 +107,7 @@ May raise `starlette.websockets.WebSocketDisconnect` if the application does not
 
 * `.receive_text()` - Wait for incoming text sent by the application and return it.
 * `.receive_bytes()` - Wait for incoming bytestring sent by the application and return it.
-* `.receive_json(mode="text")` - Wait for incoming json data sent by the application and return it. Use `mode="binary"` to send JSON over binary data frames.
+* `.receive_json(mode="text")` - Wait for incoming json data sent by the application and return it. Use `mode="binary"` to receive JSON over binary data frames.
 
 May raise `starlette.websockets.WebSocketDisconnect`.