summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-22 12:01:24 (GMT)
committerGitHub <noreply@github.com>2023-10-22 12:01:24 (GMT)
commitf2f89bf1c125d515fcb563460193bfb411637ba9 (patch)
tree76206e15ef0806f3addaf4088859e82599057590
parent028f47754c78864abf6eb1930493871727925b6a (diff)
downloadcpython-f2f89bf1c125d515fcb563460193bfb411637ba9.zip
cpython-f2f89bf1c125d515fcb563460193bfb411637ba9.tar.gz
cpython-f2f89bf1c125d515fcb563460193bfb411637ba9.tar.bz2
[3.12] gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173) (#111175)
gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173) (cherry picked from commit 663cf513b0e973ab7aa4a8609d6616ad2c283f22) Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
-rw-r--r--Doc/tools/.nitignore1
-rw-r--r--Doc/tutorial/introduction.rst2
2 files changed, 1 insertions, 2 deletions
diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore
index 8a7008e..e59f6d7 100644
--- a/Doc/tools/.nitignore
+++ b/Doc/tools/.nitignore
@@ -157,7 +157,6 @@ Doc/reference/expressions.rst
Doc/reference/import.rst
Doc/reference/simple_stmts.rst
Doc/tutorial/datastructures.rst
-Doc/tutorial/introduction.rst
Doc/using/windows.rst
Doc/whatsnew/2.0.rst
Doc/whatsnew/2.1.rst
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index 172611d..4536ab9 100644
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -428,7 +428,7 @@ type, i.e. it is possible to change their content::
[1, 8, 27, 64, 125]
You can also add new items at the end of the list, by using
-the :meth:`~list.append` *method* (we will see more about methods later)::
+the :meth:`!list.append` *method* (we will see more about methods later)::
>>> cubes.append(216) # add the cube of 6
>>> cubes.append(7 ** 3) # and the cube of 7