mirror of
https://github.com/kristoferssolo/hexlab.git
synced 2025-10-21 19:40:34 +00:00
docs: fix method name
This commit is contained in:
parent
5585966da6
commit
b874f05471
@ -42,7 +42,7 @@ fn main() {
|
|||||||
.with_radius(5)
|
.with_radius(5)
|
||||||
.build()
|
.build()
|
||||||
.expect("Failed to create maze");
|
.expect("Failed to create maze");
|
||||||
println!("Maze size: {}", maze.len());
|
println!("Maze size: {}", maze.count());
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ use hexx::Hex;
|
|||||||
///
|
///
|
||||||
/// // A radius of 5 creates 61 hexagonal tiles
|
/// // A radius of 5 creates 61 hexagonal tiles
|
||||||
/// assert!(!maze.is_empty());
|
/// assert!(!maze.is_empty());
|
||||||
/// assert_eq!(maze.len(), 91);
|
/// assert_eq!(maze.count(), 91);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Using a seed for reproducible results:
|
/// Using a seed for reproducible results:
|
||||||
@ -40,7 +40,7 @@ use hexx::Hex;
|
|||||||
/// .expect("Failed to create maze");
|
/// .expect("Failed to create maze");
|
||||||
///
|
///
|
||||||
/// // Same seed should produce identical mazes
|
/// // Same seed should produce identical mazes
|
||||||
/// assert_eq!(maze1.len(), maze2.len());
|
/// assert_eq!(maze1.count(), maze2.count());
|
||||||
/// assert_eq!(maze1, maze2);
|
/// assert_eq!(maze1, maze2);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
//! .build()
|
//! .build()
|
||||||
//! .expect("Failed to create maze");
|
//! .expect("Failed to create maze");
|
||||||
//!
|
//!
|
||||||
//! assert_eq!(maze.len(), 37); // A radius of 3 should create 37 tiles
|
//! assert_eq!(maze.count(), 37); // A radius of 3 should create 37 tiles
|
||||||
//!```
|
//!```
|
||||||
//!
|
//!
|
||||||
//! Customizing maze generation:
|
//! Customizing maze generation:
|
||||||
|
|||||||
@ -34,7 +34,7 @@ impl Maze {
|
|||||||
/// let maze = Maze::new();
|
/// let maze = Maze::new();
|
||||||
///
|
///
|
||||||
/// assert!(maze.is_empty());
|
/// assert!(maze.is_empty());
|
||||||
/// assert_eq!(maze.len(), 0);
|
/// assert_eq!(maze.count(), 0);
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user