mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
AK: Annotate String.count as [[nodiscard]]
This commit is contained in:
parent
18eb262157
commit
f2d684fc24
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
int replace(const String& needle, const String& replacement, bool all_occurrences = false);
|
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;
|
[[nodiscard]] String reverse() const;
|
||||||
|
|
||||||
template<typename... Ts>
|
template<typename... Ts>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue