diff --git a/ex00/src/whatever.hpp b/ex00/src/whatever.hpp index e77aef7..229174d 100644 --- a/ex00/src/whatever.hpp +++ b/ex00/src/whatever.hpp @@ -11,11 +11,11 @@ void swap(T a, T b) template T min(T a, T b) { - return a > b ? a : b; + return a > b ? b : a; } template T max(T a, T b) { - return a < b ? a : b; -} \ No newline at end of file + return a > b ? a : b; +}