Skip to content

Commit 303ef09

Browse files
authored
Doc: Use consistent markup for example Point class in sqlite3 (#96095)
1 parent 1a140af commit 303ef09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/sqlite3.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ registering custom adapter functions.
16061606
Letting your object adapt itself
16071607
""""""""""""""""""""""""""""""""
16081608

1609-
Suppose we have a ``Point`` class that represents a pair of coordinates,
1609+
Suppose we have a :class:`!Point` class that represents a pair of coordinates,
16101610
``x`` and ``y``, in a Cartesian coordinate system.
16111611
The coordinate pair will be stored as a text string in the database,
16121612
using a semicolon to separate the coordinates.
@@ -1637,11 +1637,11 @@ values.
16371637
To be able to convert *from* SQLite values *to* custom Python types,
16381638
we use *converters*.
16391639

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

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

16461646
.. note::
16471647

0 commit comments

Comments
 (0)