Merge branch 'doc' into 'master'
doc to create_hash_map See merge request mhart/DancingDroids!44
This commit is contained in:
		
						commit
						0fdad0c929
					
				@ -41,6 +41,7 @@ fn check_collisions(r: &robot::Robot, h: &HashMap<robot::Position, u32>) -> Resu
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/// Creates HashMap of robot position and it's id.
 | 
			
		||||
fn create_hash_map(pool: &Vec<robot::Robot>, hash: &mut HashMap<robot::Position, u32>) {
 | 
			
		||||
    for r in pool {
 | 
			
		||||
        hash.insert(robot::Position { x: r.p.x, y: r.p.y }, r.id);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user