Skip to content

Commit d52834d

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 8a6e651 commit d52834d

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
@@ -1274,7 +1274,7 @@ registering custom adapter functions.
12741274
Letting your object adapt itself
12751275
""""""""""""""""""""""""""""""""
12761276

1277-
Suppose we have a ``Point`` class that represents a pair of coordinates,
1277+
Suppose we have a :class:`!Point` class that represents a pair of coordinates,
12781278
``x`` and ``y``, in a Cartesian coordinate system.
12791279
The coordinate pair will be stored as a text string in the database,
12801280
using a semicolon to separate the coordinates.
@@ -1305,11 +1305,11 @@ values.
13051305
To be able to convert *from* SQLite values *to* custom Python types,
13061306
we use *converters*.
13071307

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

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

13141314
.. note::
13151315

0 commit comments

Comments
 (0)