Error Handling
This commit is contained in:
		
							parent
							
								
									341fa3f2f2
								
							
						
					
					
						commit
						177f29d732
					
				| @ -1,8 +1,10 @@ | ||||
| mod azul; | ||||
| use azul::Game; | ||||
| 
 | ||||
| fn main() { | ||||
| fn main() -> Result<(), &'static str>{ | ||||
| 
 | ||||
|     let game = Game::new(2); | ||||
|     let game = Game::new(2)?; | ||||
|     println!("{:#?}", game); | ||||
| 
 | ||||
|     Ok(()) | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user