diff --git a/AK/Tests/TestArray.cpp b/AK/Tests/TestArray.cpp index 4aaf485956c..61786c81219 100644 --- a/AK/Tests/TestArray.cpp +++ b/AK/Tests/TestArray.cpp @@ -28,12 +28,10 @@ #include -// FIXME: Use Span as soon as Span has all the constexpr stuff too. -template -static constexpr int constexpr_sum(const Array& array) +static constexpr int constexpr_sum(const Span span) { int sum = 0; - for (auto value : array) + for (auto value : span) sum += value; return sum;