Skip to content

Commit

Permalink
Fix Sphinx syntax of code-block directive
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Aug 5, 2019
1 parent 11c897b commit 308e4ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/tutorial/histogram.rst
Expand Up @@ -15,7 +15,7 @@ Original implementation
Actual code from a commercial software product that computes the luminosity
histogram (variable names have been changed and unrelated parts removed):

.. code-block: cpp
.. code-block:: cpp
void luminosity_hist(
std::uint8_t const* r, std::uint8_t const* g, std::uint8_t const* b,
Expand Down Expand Up @@ -43,7 +43,7 @@ Let's consider the following issues of the implementation above:
GIL implementation
------------------

.. code-block: cpp
.. code-block:: cpp
template <typename GrayView, typename R>
void grayimage_histogram(GrayView& img, R& hist)
Expand All @@ -61,7 +61,7 @@ GIL implementation
Using the Boost.Lambda library (or C++11 lambda) features it can written
even simpler:

.. code-block: cpp
.. code-block:: cpp
using boost::lambda;
Expand All @@ -85,7 +85,7 @@ Shortly, it is also very flexible.
For example, to compute the histogram of the second channel of the top left
quadrant of the image, taking every other row and column, call:

.. code-block: cpp
.. code-block:: cpp
grayimage_histogram(
nth_channel_view(
Expand Down

0 comments on commit 308e4ea

Please sign in to comment.