docs: fix method name

This commit is contained in:
Kristofers Solo 2025-01-20 21:11:55 +02:00
parent 5585966da6
commit b874f05471
4 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ fn main() {
.with_radius(5)
.build()
.expect("Failed to create maze");
println!("Maze size: {}", maze.len());
println!("Maze size: {}", maze.count());
}
```

View File

@ -20,7 +20,7 @@ use hexx::Hex;
///
/// // A radius of 5 creates 61 hexagonal tiles
/// assert!(!maze.is_empty());
/// assert_eq!(maze.len(), 91);
/// assert_eq!(maze.count(), 91);
/// ```
///
/// Using a seed for reproducible results:
@ -40,7 +40,7 @@ use hexx::Hex;
/// .expect("Failed to create maze");
///
/// // Same seed should produce identical mazes
/// assert_eq!(maze1.len(), maze2.len());
/// assert_eq!(maze1.count(), maze2.count());
/// assert_eq!(maze1, maze2);
/// ```
///

View File

@ -20,7 +20,7 @@
//! .build()
//! .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:

View File

@ -34,7 +34,7 @@ impl Maze {
/// let maze = Maze::new();
///
/// assert!(maze.is_empty());
/// assert_eq!(maze.len(), 0);
/// assert_eq!(maze.count(), 0);
/// ```
#[inline]
#[must_use]