Skip to content

Commit 9bb3854

Browse files
committed
Ensure sphinxdoc does not start sentences lowercase
Lowercase class names at the start of sentences are marked out with the `class` role. In the case of `deque`, documentation already refers to these as `Deques`, so this form is preferred.
1 parent 7b3ea53 commit 9bb3854

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/library/collections.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ or subtracting from an empty counter.
484484
Unix. They are also useful for tracking transactions and other pools of data
485485
where only the most recent activity is of interest.
486486

487-
deques are :ref:`generic <generics>` over the type of their contents.
487+
Deques are :ref:`generic <generics>` over the type of their contents.
488488

489489

490490
Deque objects support the following methods:
@@ -741,8 +741,8 @@ stack manipulations such as ``dup``, ``drop``, ``swap``, ``over``, ``pick``,
741741
as if they were passed to the :class:`dict` constructor, including keyword
742742
arguments.
743743

744-
defaultdicts are :ref:`generic <generics>` over two types, signifying
745-
(respectively) the types of the dictionary's keys and values.
744+
:class:`!defaultdicts` are :ref:`generic <generics>` over two types,
745+
signifying (respectively) the types of the dictionary's keys and values.
746746

747747

748748
:class:`defaultdict` objects support the following method in addition to the

Doc/library/stdtypes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4592,7 +4592,8 @@ copying.
45924592
types such as :class:`bytes` and :class:`bytearray`, an element is a single
45934593
byte, but other types such as :class:`array.array` may have bigger elements.
45944594

4595-
memoryviews are :ref:`generic <generics>` over the type of their underlying data.
4595+
:class:`!memoryviews` are :ref:`generic <generics>` over the type of their
4596+
underlying data.
45964597

45974598
``len(view)`` is equal to the length of :meth:`~memoryview.tolist`, which
45984599
is the nested list representation of the view. If ``view.ndim = 1``,

0 commit comments

Comments
 (0)