Fix section header markup.
This commit is contained in:
parent
195fadbb40
commit
0a1b01ea4e
10
pep-0548.rst
10
pep-0548.rst
|
@ -12,14 +12,16 @@ Post-History:
|
|||
|
||||
|
||||
Abstract
|
||||
========
|
||||
|
||||
This PEP proposes enhancing the 'break' and 'continue' statements
|
||||
This PEP proposes enhancing the ``break`` and ``continue`` statements
|
||||
with an optional boolean expression that controls whether or not
|
||||
they execute. This allows the flow of control in loops to be
|
||||
expressed more clearly and compactly.
|
||||
|
||||
|
||||
Motivation
|
||||
==========
|
||||
|
||||
Quoting from the rejected :pep:`315`:
|
||||
|
||||
|
@ -48,6 +50,7 @@ Motivation
|
|||
|
||||
|
||||
Syntax
|
||||
======
|
||||
|
||||
The syntax of the break and continue statements are extended
|
||||
as follows::
|
||||
|
@ -64,6 +67,7 @@ Syntax
|
|||
|
||||
|
||||
Semantics
|
||||
=========
|
||||
|
||||
A ``break if`` or ``continue if`` is executed if and only if
|
||||
``expression`` evaluates to true.
|
||||
|
@ -77,7 +81,8 @@ Semantics
|
|||
does not contain at least one ``break`` or ``return`` statement.
|
||||
|
||||
|
||||
Justification
|
||||
Justification and Examples
|
||||
==========================
|
||||
|
||||
The previous "best possible" form::
|
||||
|
||||
|
@ -263,5 +268,6 @@ Justification
|
|||
|
||||
|
||||
Copyright
|
||||
=========
|
||||
|
||||
This document is placed in the public domain.
|
||||
|
|
Loading…
Reference in New Issue