fixed doc

This commit is contained in:
klangner 2020-10-19 20:14:36 +02:00
parent 21fa869081
commit 16f4eb141b

View File

@ -42,8 +42,7 @@ pub struct DijkstraMap {
} }
impl DijkstraMap { impl DijkstraMap {
/// Construct a new Dijkstra map, ready to run. You must specify the map size, and link to an implementation //! Construct a new Dijkstra map, ready to run.
/// of a BaseMap trait that can generate exits lists. It then builds the map, giving you a result.
pub fn new(map: &Map) -> DijkstraMap { pub fn new(map: &Map) -> DijkstraMap {
let len = map.width * map.height; let len = map.width * map.height;
let tiles = vec![MAX; len]; let tiles = vec![MAX; len];