From e4d346eafa24aec84183ac754d2c5ccec5806621 Mon Sep 17 00:00:00 2001 From: RasmusB Date: Wed, 14 Aug 2024 16:10:28 +0200 Subject: [PATCH] Fix Usage Example --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index cab4901..99ff4c6 100644 --- a/README.rst +++ b/README.rst @@ -87,7 +87,7 @@ Usage Example session = prompt_toolkit.PromptSession(input=serial, output=serial) while True: - response = prompt_toolkit.prompt("$ ") + response = session.prompt("$ ") print("->", response, file=serial) Documentation