Error Handling

This commit is contained in:
Daniel Olsen 2021-01-02 01:20:29 +01:00
parent 341fa3f2f2
commit 177f29d732
1 changed files with 4 additions and 2 deletions

View File

@ -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(())
}