]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix .. code-block :: directives in decimal.rst (GH-22571)
authorAnthony Sottile <asottile@umich.edu>
Sun, 11 Oct 2020 18:26:50 +0000 (11:26 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Oct 2020 18:26:50 +0000 (19:26 +0100)
Doc/c-api/decimal.rst

index f530571ebae5771d343eefd1875008591de695a3..94cc4a7b845791379f469bef8545e441eac6a237 100644 (file)
@@ -16,7 +16,7 @@ Initialize
 Typically, a C extension module that uses the decimal API will do these
 steps in its init function:
 
-.. code-block::
+.. code-block:: c
 
     #include "pydecimal.h"
 
@@ -88,7 +88,7 @@ Data structures
 
 The conversion functions use the following status codes and data structures:
 
-.. code-block::
+.. code-block:: c
 
    /* status cases for getting a triple */
    enum mpd_triple_class {
@@ -126,7 +126,7 @@ Functions
    For simplicity, the usage of the function and all special cases are
    explained in code form and comments:
 
-.. code-block::
+.. code-block:: c
 
     triple = PyDec_AsUint128Triple(dec);
     switch (triple.tag) {