Merge branch 'add-doc' into 'master'
added doc / Update robot.rs See merge request mhart/DancingDroids!66
This commit is contained in:
		
						commit
						52616753b2
					
				@ -56,6 +56,7 @@ pub enum Orientation {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl Distribution<Orientation> for Standard {
 | 
			
		||||
    /// Generating random orientation.
 | 
			
		||||
    fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Orientation {
 | 
			
		||||
        match rng.gen_range(0, 3) {
 | 
			
		||||
            0 => Orientation::N,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user