1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

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

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>