aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2019-12-28 14:48:42 +0100
committerFelix Morgner <felix.morgner@gmail.com>2019-12-28 14:48:42 +0100
commit8a0267d8045a5a0a7f426c743f61c78491ddd92e (patch)
treedc709938c665253c8b6bf29dbd2f424177e48c40 /doc
parentf135ee19925f5e1afffcf20366f9056f88d866e9 (diff)
downloadnewtype-8a0267d8045a5a0a7f426c743f61c78491ddd92e.tar.xz
newtype-8a0267d8045a5a0a7f426c743f61c78491ddd92e.zip
doc: add missing argument for code-block
Diffstat (limited to 'doc')
-rw-r--r--doc/src/index.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/index.rst b/doc/src/index.rst
index 2cb695a..41f9675 100644
--- a/doc/src/index.rst
+++ b/doc/src/index.rst
@@ -50,7 +50,7 @@ The class template :cpp:class:`new_type` takes as a third template argument an i
Derivation clauses make it possible to let the implementation derive certain operations automatically.
For example, the derivation tag :cpp:var:`Arithmetic` enables automatic derivation of arithmetic operations for a given instance of :cpp:class:`new_type` (see :ref:`new-type-usage-deriving-arithmetic` below).
-.. code-block::
+.. code-block:: c++
:linenos:
:name: new-type-usage-deriving-arithmetic
:caption: Automatically deriving arithmetic operations
@@ -62,7 +62,7 @@ For example, the derivation tag :cpp:var:`Arithmetic` enables automatic derivati
Synopsis
~~~~~~~~
-.. code-block::
+.. code-block:: c++
namespace nt
{