diff options
| author | Georg Brandl <georg@python.org> | 2007-12-29 10:57:00 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-12-29 10:57:00 +0000 |
| commit | b19be571e09263239ef29c92eee06dbb30186685 (patch) | |
| tree | 9c8a5439b14ce34cfaa0e4e164483b0f8690aa42 /Doc/tutorial/controlflow.rst | |
| parent | 28c7bcf38e1e69a9091cbba90b982331428ddbe6 (diff) | |
| download | cpython-git-b19be571e09263239ef29c92eee06dbb30186685.tar.gz | |
Some cleanup in the docs.
Diffstat (limited to 'Doc/tutorial/controlflow.rst')
| -rw-r--r-- | Doc/tutorial/controlflow.rst | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 0f72d3d849..486949610a 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -31,11 +31,8 @@ example:: There can be zero or more :keyword:`elif` parts, and the :keyword:`else` part is optional. The keyword ':keyword:`elif`' is short for 'else if', and is useful to avoid excessive indentation. An :keyword:`if` ... :keyword:`elif` ... -:keyword:`elif` ... sequence is a substitute for the :keyword:`switch` or -:keyword:`case` statements found in other languages. - -.. % Weird spacings happen here if the wrapping of the source text -.. % gets changed in the wrong way. +:keyword:`elif` ... sequence is a substitute for the ``switch`` or +``case`` statements found in other languages. .. _tut-for: @@ -54,8 +51,8 @@ iteration step and halting condition (as C), Python's :keyword:`for` statement iterates over the items of any sequence (a list or a string), in the order that they appear in the sequence. For example (no pun intended): -.. % One suggestion was to give a real C example here, but that may only -.. % serve to confuse non-C programmers. +.. One suggestion was to give a real C example here, but that may only serve to + confuse non-C programmers. :: |
