diff --git a/docs/source/API/core/Initialize-and-Finalize.rst b/docs/source/API/core/Initialize-and-Finalize.rst index 8a08f4aa8..9494e6d33 100644 --- a/docs/source/API/core/Initialize-and-Finalize.rst +++ b/docs/source/API/core/Initialize-and-Finalize.rst @@ -35,6 +35,11 @@ ScopeGuard aids in the following common mistake which is allowing Kokkos objects // my_view destructor called after Kokkos::finalize ! } + +.. raw:: html + + + Switching to ``Kokkos::ScopeGuard`` fixes it: .. code-block:: cpp