]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Use consistent markup for example Point class in sqlite3 (#96095)
authorC.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Fri, 19 Aug 2022 07:41:16 +0000 (02:41 -0500)
committerGitHub <noreply@github.com>
Fri, 19 Aug 2022 07:41:16 +0000 (09:41 +0200)
Doc/library/sqlite3.rst

index a06b9f78065f0c080205a2c02d83e63a154a237c..508505ca05071f472681576a4898ac27eb8cbd4b 100644 (file)
@@ -1606,7 +1606,7 @@ registering custom adapter functions.
 Letting your object adapt itself
 """"""""""""""""""""""""""""""""
 
-Suppose we have a ``Point`` class that represents a pair of coordinates,
+Suppose we have a :class:`!Point` class that represents a pair of coordinates,
 ``x`` and ``y``, in a Cartesian coordinate system.
 The coordinate pair will be stored as a text string in the database,
 using a semicolon to separate the coordinates.
@@ -1637,11 +1637,11 @@ values.
 To be able to convert *from* SQLite values *to* custom Python types,
 we use *converters*.
 
-Let's go back to the :class:`Point` class. We stored the x and y coordinates
+Let's go back to the :class:`!Point` class. We stored the x and y coordinates
 separated via semicolons as strings in SQLite.
 
 First, we'll define a converter function that accepts the string as a parameter
-and constructs a :class:`Point` object from it.
+and constructs a :class:`!Point` object from it.
 
 .. note::