summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>2022-08-19 07:41:16 (GMT)
committerGitHub <noreply@github.com>2022-08-19 07:41:16 (GMT)
commit303ef0913e5b80adbe63def41829bff5effab6a0 (patch)
tree1b3af227b0df5440d001b4a2ca158f02aafe1196
parent1a140af40b7204faf7896b67b8ef5af200427565 (diff)
downloadcpython-303ef0913e5b80adbe63def41829bff5effab6a0.zip
cpython-303ef0913e5b80adbe63def41829bff5effab6a0.tar.gz
cpython-303ef0913e5b80adbe63def41829bff5effab6a0.tar.bz2
Doc: Use consistent markup for example Point class in sqlite3 (#96095)
-rw-r--r--Doc/library/sqlite3.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index a06b9f7..508505c 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -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::