]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix incorrect links in ast docs (GH-23017)
authorMatthew Suozzo <matthew.suozzo@gmail.com>
Tue, 3 Nov 2020 21:28:42 +0000 (16:28 -0500)
committerGitHub <noreply@github.com>
Tue, 3 Nov 2020 21:28:42 +0000 (23:28 +0200)
Doc/library/ast.rst

index b8688ae61a4876d1d6f849adb6a8e95b86bfef5b..8a5c6ec5f1279d20ffc803ad821a23e2538fd62a 100644 (file)
@@ -80,12 +80,13 @@ Node classes
                   end_col_offset
 
       Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have
-      :attr:`lineno`, :attr:`col_offset`, :attr:`lineno`, and :attr:`col_offset`
-      attributes.  The :attr:`lineno` and :attr:`end_lineno` are the first and
-      last line numbers of source text span (1-indexed so the first line is line 1)
-      and the :attr:`col_offset` and :attr:`end_col_offset` are the corresponding
-      UTF-8 byte offsets of the first and last tokens that generated the node.
-      The UTF-8 offset is recorded because the parser uses UTF-8 internally.
+      :attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno`, and
+      :attr:`end_col_offset` attributes.  The :attr:`lineno` and :attr:`end_lineno`
+      are the first and last line numbers of source text span (1-indexed so the
+      first line is line 1) and the :attr:`col_offset` and :attr:`end_col_offset`
+      are the corresponding UTF-8 byte offsets of the first and last tokens that
+      generated the node. The UTF-8 offset is recorded because the parser uses
+      UTF-8 internally.
 
       Note that the end positions are not required by the compiler and are
       therefore optional. The end offset is *after* the last symbol, for example