Skip to content

Commit f21d7e5

Browse files
Doc: Use consistent markup for example Point class in sqlite3 (GH-96095)
(cherry picked from commit 303ef09) Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent eed7711 commit f21d7e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/sqlite3.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ registering custom adapter functions.
15711571
Letting your object adapt itself
15721572
""""""""""""""""""""""""""""""""
15731573

1574-
Suppose we have a ``Point`` class that represents a pair of coordinates,
1574+
Suppose we have a :class:`!Point` class that represents a pair of coordinates,
15751575
``x`` and ``y``, in a Cartesian coordinate system.
15761576
The coordinate pair will be stored as a text string in the database,
15771577
using a semicolon to separate the coordinates.
@@ -1602,11 +1602,11 @@ values.
16021602
To be able to convert *from* SQLite values *to* custom Python types,
16031603
we use *converters*.
16041604

1605-
Let's go back to the :class:`Point` class. We stored the x and y coordinates
1605+
Let's go back to the :class:`!Point` class. We stored the x and y coordinates
16061606
separated via semicolons as strings in SQLite.
16071607

16081608
First, we'll define a converter function that accepts the string as a parameter
1609-
and constructs a :class:`Point` object from it.
1609+
and constructs a :class:`!Point` object from it.
16101610

16111611
.. note::
16121612

0 commit comments

Comments
 (0)