fixed doc
This commit is contained in:
parent
21fa869081
commit
16f4eb141b
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user