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