From b8bfc194cf2923d3f71ffa3d960fbc9f26cff7bb Mon Sep 17 00:00:00 2001 From: Carson Radtke Date: Sat, 9 Nov 2024 14:42:55 -0600 Subject: [PATCH] fix some typos --- include/gsl/span | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gsl/span b/include/gsl/span index 57c04d6..fc6ad52 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -141,8 +141,8 @@ namespace details constexpr span_iterator(pointer begin, pointer end, pointer current) : begin_(begin), end_(end), current_(current) { - Expects(begin && current && end); - Expects(begin <= current && current <= end); + Expects(begin_ && current_ && end_); + Expects(begin_ <= current_ && current <= end_); } constexpr operator span_iterator() const noexcept @@ -180,7 +180,7 @@ namespace details constexpr span_iterator& operator--() noexcept { - Expects(begin != current_); + Expects(begin_ != current_); --current_; return *this; }