Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinH committed Feb 3, 2022
1 parent c34f2a2 commit 25aee1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tao/pegtl/demangle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace TAO_PEGTL_NAMESPACE
static_assert( internal::dependent_true< T > && ( begin != std::string_view::npos ) );
constexpr auto tmp = sv.substr( begin + 2 );
constexpr auto end = tmp.rfind( ';' );
static_assert( internal::dependen_true< T > && ( end != std::string_view::npos ) );
static_assert( internal::dependent_true< T > && ( end != std::string_view::npos ) );
return tmp.substr( 0, end );
}

Expand All @@ -117,7 +117,7 @@ namespace TAO_PEGTL_NAMESPACE
{
constexpr std::string_view sv = __FUNCSIG__;
constexpr auto begin = sv.find( "demangle<" );
static_assert( internal::dependen_true< T > && ( begin != std::string_view::npos ) );
static_assert( internal::dependent_true< T > && ( begin != std::string_view::npos ) );
constexpr auto tmp = sv.substr( begin + 9 );
constexpr auto end = tmp.rfind( '>' );
static_assert( internal::dependent_true< T > && ( end != std::string_view::npos ) );
Expand Down

0 comments on commit 25aee1f

Please sign in to comment.