Skip to content

Commit

Permalink
Merge pull request #365 from NoahShomette/main
Browse files Browse the repository at this point in the history
Fixed typo in tiles/storage
  • Loading branch information
StarArawn authored Dec 11, 2022
2 parents eb20fca + a9aa302 commit 80d364a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tiles/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl TileStorage {
/// Gets a tile entity for the given tile position, if an entity is associated with that tile
/// position.
///
/// Panics if the given `tile_pos` does lie within the extents of the underlying tile map.
/// Panics if the given `tile_pos` doesn't lie within the extents of the underlying tile map.
pub fn get(&self, tile_pos: &TilePos) -> Option<Entity> {
self.tiles[tile_pos.to_index(&self.size)]
}
Expand All @@ -45,7 +45,7 @@ impl TileStorage {
///
/// If there is an entity already at that position, it will be replaced.
///
/// Panics if the given `tile_pos` does lie within the extents of the underlying tile map.
/// Panics if the given `tile_pos` doesn't lie within the extents of the underlying tile map.
pub fn set(&mut self, tile_pos: &TilePos, tile_entity: Entity) {
self.tiles[tile_pos.to_index(&self.size)].replace(tile_entity);
}
Expand All @@ -72,7 +72,7 @@ impl TileStorage {

/// Remove entity at the given tile position, if there was one, leaving `None` in its place.
///
/// Panics if the given `tile_pos` does lie within the extents of the underlying tile map.
/// Panics if the given `tile_pos` doesn't lie within the extents of the underlying tile map.
pub fn remove(&mut self, tile_pos: &TilePos) {
self.tiles[tile_pos.to_index(&self.size)].take();
}
Expand Down

0 comments on commit 80d364a

Please sign in to comment.