diff --git a/README.md b/README.md index 6e35d6d..089d352 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ pub fn main() { float_list.extrema([10.0, 3.0, 50.0, 20.0, 3.0]) // Returns Tuple: Ok(#(3.0, 50.0)) - // Find the list indices of the largest values - int_list.arg_maximum([10, 3, 50, 20, 3]) + // Find the list indices of the smallest value + int_list.arg_minimum([10, 3, 50, 20, 3]) // Returns List: Ok([1, 4]) } @@ -42,4 +42,4 @@ with the prefix `gleam_community_`. You can add them to your Gleam projects dire ```sh gleam add gleam_community_maths -``` \ No newline at end of file +```