From c5edf020550697f42a239e77e64a3eea89cb723a Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipov Date: Fri, 1 Oct 2021 13:15:54 +0300 Subject: [PATCH] Fix typos in array::erase docs --- include/boost/json/array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/json/array.hpp b/include/boost/json/array.hpp index 8000c1f2..6b66018d 100644 --- a/include/boost/json/array.hpp +++ b/include/boost/json/array.hpp @@ -1388,7 +1388,7 @@ public: The elements in the range `{first, last)` are removed. @par Complexity - Linear in `std::distance(first, last) + std::distance(pos, end())` + Linear in `std::distance(first, end())` @par Exception Safety No-throw guarantee. @@ -1401,7 +1401,7 @@ public: range. @return Iterator following the last removed element. - If the iterator `pos` refers to the last element, + If the iterator `last` refers to the last element, the @ref end() iterator is returned. */ BOOST_JSON_DECL