Skip to content

Commit 4961fe7

Browse files
authored
omitting the "unused" prompt in code example (1210)
* omitting the "unused" prompt in code example * updated text as per review comment
1 parent 2e9e657 commit 4961fe7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

documentation/markup.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,14 +611,13 @@ preceding paragraph and delimited by indentation.
611611

612612
Representing an interactive session requires including the prompts and output
613613
along with the Python code. No special markup is required for interactive
614-
sessions. After the last line of input or output presented, there should not be
615-
an "unused" primary prompt; this is an example of what *not* to do:
614+
sessions. After the last line of input or output is presented, there should
615+
be no trailing prompt. An example of correct usage is:
616616

617617
.. code-block:: python
618618
619619
>>> 1 + 1
620620
2
621-
>>>
622621
623622
Syntax highlighting is handled in a smart way:
624623

0 commit comments

Comments
 (0)