From 22dbb0e1b74865801ac4a64aa937b069b59d1587 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <6977238-fiplox@users.noreply.gitlab.com> Date: Sat, 31 Oct 2020 20:42:26 +0100 Subject: [PATCH] doc to create_hash_map --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 61e9d8a..6609ca7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,6 +41,7 @@ fn check_collisions(r: &robot::Robot, h: &HashMap) -> Resu } } +/// Creates HashMap of robot position and it's id. fn create_hash_map(pool: &Vec, hash: &mut HashMap) { for r in pool { hash.insert(robot::Position { x: r.p.x, y: r.p.y }, r.id);