Fix typo in exception

This commit is contained in:
Gwilym Kuiper 2022-03-13 19:43:03 +00:00
parent ea3d3d4936
commit 989fcea1d0

View file

@ -364,7 +364,7 @@ impl ObjectController {
} }
pub fn get_object<'a, 'b>(&'a self, sprite: SpriteBorrow<'b>) -> Object<'b, 'a> { pub fn get_object<'a, 'b>(&'a self, sprite: SpriteBorrow<'b>) -> Object<'b, 'a> {
self.try_get_object(sprite).expect("No object avaliable") self.try_get_object(sprite).expect("No object available")
} }
pub fn try_get_object<'a, 'b>(&'a self, sprite: SpriteBorrow<'b>) -> Option<Object<'b, 'a>> { pub fn try_get_object<'a, 'b>(&'a self, sprite: SpriteBorrow<'b>) -> Option<Object<'b, 'a>> {