Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
naomijub committed Feb 14, 2025
1 parent bce948b commit f466fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/maze/algorithms/growing_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use rand::prelude::*;
/// to imitate other algorithms or theirs combinations
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
pub enum Method {
/// Selects the most recently added cell, thus imitating the recurive backtracker
/// Selects the most recently added cell, thus imitating the recursive backtracker
Newest,

/// Selects the oldest added cell, thus generating an unchallenging maze with lots of long
Expand Down
2 changes: 1 addition & 1 deletion tests/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Options:
[default: newest]
Possible values:
- newest: Selects the most recently added cell, thus imitating the recurive backtracker
- newest: Selects the most recently added cell, thus imitating the recursive backtracker
- oldest: Selects the oldest added cell, thus generating an unchallenging maze with lots of long corridors
- random: Selects cells at random, thus getting Prim's algorithm behaviour
- middle: Selects a middle cell from the list of already added, but produces mazes similar to the ones created by the [Oldest](Method::Oldest) method
Expand Down

0 comments on commit f466fe7

Please sign in to comment.