diff --git a/source/libs/array/array/cend.rst b/source/libs/array/array/cend.rst index be0a3d3b..e80c7697 100644 --- a/source/libs/array/array/cend.rst +++ b/source/libs/array/array/cend.rst @@ -1,13 +1,13 @@ -.. _sprout-array-array-cbegin: +.. _sprout-array-array-cend: ############################################################################### -cbegin +cend ############################################################################### Interface ======================================== .. sourcecode:: c++ - SPROUT_CONSTEXPR const_iterator cbegin() const SPROUT_NOEXCEPT; + SPROUT_CONSTEXPR const_iterator cend() const SPROUT_NOEXCEPT; Returns ======================================== @@ -22,7 +22,7 @@ Examples using namespace sprout; SPROUT_STATIC_CONSTEXPR auto input = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - static_assert(*(input.cbegin() - 1) == 10, "input last element is 10."); + static_assert(*(input.cend() - 1) == 10, "input last element is 10."); Complexity ======================================== diff --git a/source/libs/array/array/end.rst b/source/libs/array/array/end.rst index f158feda..dc3ad354 100644 --- a/source/libs/array/array/end.rst +++ b/source/libs/array/array/end.rst @@ -24,7 +24,7 @@ Examples using namespace sprout; SPROUT_STATIC_CONSTEXPR auto input = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - static_assert(*(input.end() - 1) == 1, "input last element is 10."); + static_assert(*(input.end() - 1) == 10, "input last element is 10."); Complexity ========================================