Skip to content

Commit

Permalink
Correct example code instructions (#580)
Browse files Browse the repository at this point in the history
Python's `input()` function does not return when *any* key is pressed. The `Enter` key must be pressed (on typical keyboards).
  • Loading branch information
Julian-O committed Sep 9, 2021
1 parent 246eabf commit e920d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/get_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ using :func:`subscribe_on() <rx.operators.subscribe_on>` as well as an
on_error=lambda e: print(e),
)
input("Press any key to exit\n")
input("Press Enter key to exit\n")
**OUTPUT:**

.. code:: console
Press any key to exit
Press Enter key to exit
PROCESS 1: Thread-1 Alpha
PROCESS 2: Thread-2 1
PROCESS 3: Thread-4 0
Expand Down

0 comments on commit e920d4c

Please sign in to comment.