diff --git a/AK/Find.h b/AK/Find.h index 1057650c45..264f7f50ae 100644 --- a/AK/Find.h +++ b/AK/Find.h @@ -38,7 +38,7 @@ requires(requires(TIterator it) { it.index(); }) } template -[[nodiscard]] constexpr auto find_value(Container const& container, TUnaryPredicate&& pred) +[[nodiscard]] constexpr auto find_value(Container&& container, TUnaryPredicate&& pred) -> Optional { auto it = find_if(container.begin(), container.end(), forward(pred));