Skip to content

Commit

Permalink
refactor: use jule::Str::begin() in jule::Str::end() (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Feb 8, 2024
1 parent e54a1f6 commit 4da105a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/str.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ namespace jule

__JULE_INLINE_BEFORE_CPP20 __JULE_CONSTEXPR_SINCE_CPP20 Iterator end(void) noexcept
{
return static_cast<Iterator>(&this->buffer[this->len()]);
return this->begin()+this->len();
}

inline ConstIterator end(void) const noexcept
__JULE_INLINE_BEFORE_CPP20 __JULE_CONSTEXPR_SINCE_CPP20 ConstIterator end(void) const noexcept
{
return static_cast<ConstIterator>(&this->buffer[this->len()]);
return this->begin()+this->len();
}

inline jule::Str slice(
Expand Down

0 comments on commit 4da105a

Please sign in to comment.