]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix invalid markup (#25833)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Mon, 3 May 2021 04:07:29 +0000 (21:07 -0700)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 04:07:29 +0000 (21:07 -0700)
Doc/library/dataclasses.rst

index 1a7fed9af81871a0cf9c396a4fc73880782817f6..e3b01d38d812f3e5873c28faf3a742625f284efe 100644 (file)
@@ -443,7 +443,7 @@ Module contents
    pseudo-field with the type of :const:`KW_ONLY` are marked as
    keyword-only fields.  Note that a pseudo-field of type
    :const:`KW_ONLY` is otherwise completely ignored.  This includes the
-   name of such a field.  By convention, a name of `_` is used for a
+   name of such a field.  By convention, a name of ``_`` is used for a
    :const:`KW_ONLY` field.  Keyword-only fields signify
    :meth:`__init__` parameters that must be specified as keywords when
    the class is instantiated.
@@ -683,4 +683,3 @@ Mutable default values
          x: list = field(default_factory=list)
 
      assert D().x is not D().x
-