From 8a0267d8045a5a0a7f426c743f61c78491ddd92e Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 28 Dec 2019 14:48:42 +0100 Subject: doc: add missing argument for code-block --- doc/src/index.rst | 4 ++-- 1 file 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 { -- cgit v1.2.3