diff options
Diffstat (limited to 'apt-pkg/contrib/string_view.h')
-rw-r--r-- | apt-pkg/contrib/string_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h index b4ce0431c..16f324597 100644 --- a/apt-pkg/contrib/string_view.h +++ b/apt-pkg/contrib/string_view.h @@ -57,7 +57,7 @@ public: size_t rfind(int c, size_t pos=0) const { if (pos != 0) - return substr(pos).find(c); + return substr(pos).rfind(c); const char *found = static_cast<const char*>(memrchr(data_, c, size_)); |