diff --git a/src/example.rs b/src/example.rs index 7c251f2..57dffc2 100644 --- a/src/example.rs +++ b/src/example.rs @@ -103,7 +103,7 @@ fn main() { "green", ]; - let (kmeans, nb_iterations) = kmeans(elements, initial, &distance, ¢roid, 1000).unwrap(); + let (kmeans, nb_iterations) = kmeans(elements, initial, distance, centroid, 1000).unwrap(); let kmeans = kmeans.into_iter(); println!("Converged in {} iterations.", nb_iterations);