]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix documentation in ArrayView. 11730/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 11 Feb 2021 14:04:15 +0000 (07:04 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 11 Feb 2021 14:04:15 +0000 (07:04 -0700)
include/deal.II/base/array_view.h

index 087c8421c82dc4fcade38b8e13f8c569d460cc46..17676e8c7d972b4d2292cf4153a6e5e99b8c14f2 100644 (file)
@@ -174,10 +174,10 @@ public:
    * A constructor that automatically creates a view for a given C-style array.
    * This constructor can be used as follows:
    * @code
-   *   ArrayView<int>
+   *   ArrayView<const int>
    *   get_data_table ()
    *   {
-   *     const int my_data[7] = { 1, 1, 2, 3, 5, 8, 13 };
+   *     static const int my_data[7] = { 1, 1, 2, 3, 5, 8, 13 };
    *     return {my_data};
    *   }
    * @endcode

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.