Skip to content

Commit ab2224c

Browse files
authored
\\elif\\ -> :keyword:\elif\
1 parent 090f7e1 commit ab2224c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Improved error messages
174174
^^^^^^^
175175
ValueError: too many values to unpack (expected 3, got 4)
176176
177-
* ``elif`` statements that follow an ``else`` block now have a specific error message.
177+
* :keyword:`elif` statements that follow an :keyword:`else` block now have a specific error message.
178178
(Contributed by Steele Farnsworth in :gh:`129902`.)
179179

180180
.. code-block:: pycon
@@ -190,7 +190,6 @@ Improved error messages
190190
^^^^
191191
SyntaxError: 'elif' block follows an 'else' block
192192
193-
194193
* When incorrectly closed strings are detected, the error message suggests
195194
that the string may be intended to be part of the string. (Contributed by
196195
Pablo Galindo in :gh:`88535`.)

0 commit comments

Comments
 (0)