From 7cad3f2bffed2b7e32d314d0fbce96ee348cd45f Mon Sep 17 00:00:00 2001 From: Mitsuru Kariya Date: Sun, 8 Sep 2013 23:53:02 +0900 Subject: [PATCH] [array.end, array.cend] Fix document typo --- source/libs/array/array/cend.rst | 8 ++++---- source/libs/array/array/end.rst | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 ========================================