Skip to content

Commit

Permalink
improve documentation of Names iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 31, 2023
1 parent abe5d70 commit 5272d41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/names.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/// Iterator over all possible permutations of `-_` in crate names
/// An iterator over all possible permutations of hyphens (`-`) and underscores (`_`) of a crate name.
///
/// For instance, the name `parking_lot` is turned into the sequence `parking_lot` and `parking_lot`, while
/// `serde-yaml` is turned into `serde-yaml` and `serde_yaml`.
#[derive(Clone)]
pub struct Names {
count: Option<u16>,
Expand Down

0 comments on commit 5272d41

Please sign in to comment.