Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Oct 12, 2023
1 parent be7f49b commit 6fb5b22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/local/room_coordinate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ impl RoomXY {
Some(RoomXY { x, y })
}

/// Get the coordinate adjusted by a certain value, saturating at the edges of the room if the result would be outside the valid room area.
/// Get the coordinate adjusted by a certain value, saturating at the edges
/// of the room if the result would be outside the valid room area.
///
/// Example usage:
///
Expand All @@ -235,7 +236,8 @@ impl RoomXY {
RoomXY { x, y }
}

/// Get the neighbor of a given `RoomXY` in the given direction, returning `None` if the result is outside the valid room area.
/// Get the neighbor of a given `RoomXY` in the given direction, returning
/// `None` if the result is outside the valid room area.
///
/// Example usage:
///
Expand All @@ -256,7 +258,8 @@ impl RoomXY {
self.checked_add((dx as i8, dy as i8))
}

/// Get the neighbor of a given `RoomXY` in the given direction, saturating at the edges if the result is outside the valid room area.
/// Get the neighbor of a given `RoomXY` in the given direction, saturating
/// at the edges if the result is outside the valid room area.
///
/// Example usage:
///
Expand Down

0 comments on commit 6fb5b22

Please sign in to comment.