AK: Annotate String.count as [[nodiscard]]

This commit is contained in:
Brian Gianforcaro 2021-08-12 21:18:10 -07:00 committed by Andreas Kling
parent 18eb262157
commit f2d684fc24
Notes: sideshowbarker 2024-07-18 07:02:45 +09:00

View file

@ -284,7 +284,7 @@ public:
}
int replace(const String& needle, const String& replacement, bool all_occurrences = false);
size_t count(const String& needle) const;
[[nodiscard]] size_t count(const String& needle) const;
[[nodiscard]] String reverse() const;
template<typename... Ts>