Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dagou committed Sep 12, 2024
1 parent 7279a11 commit 20a4aee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kr2r/src/kv_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const M2: u64 = 0xc4ceb9fe1a85ec53;
/// # Examples
///
/// ```
/// # use kr2r::fmix64;
/// # use kun_peng::fmix64;
/// let key: u64 = 123;
/// let hash = fmix64(key);
/// assert_eq!(hash, 9208534749291869864);
Expand Down
4 changes: 2 additions & 2 deletions kr2r/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn read_id_to_taxon_map<P: AsRef<Path>>(filename: P) -> Result<HashMap<Strin
/// Basic usage:
///
/// ```
/// # use kr2r::utils::expand_spaced_seed_mask; // Replace with the appropriate crate name
/// # use kun_peng::utils::expand_spaced_seed_mask; // Replace with the appropriate crate name
/// // Expanding 0b1010 (binary for 10) with a factor of 2
/// assert_eq!(expand_spaced_seed_mask(0b1010, 2), 204);
///
Expand All @@ -43,7 +43,7 @@ pub fn read_id_to_taxon_map<P: AsRef<Path>>(filename: P) -> Result<HashMap<Strin
/// When the bit expansion factor is zero or greater than 64:
///
/// ```
/// # use kr2r::utils::expand_spaced_seed_mask;
/// # use kun_peng::utils::expand_spaced_seed_mask;
/// // No expansion, factor is 0
/// assert_eq!(expand_spaced_seed_mask(0b1010, 0), 0b1010);
///
Expand Down
2 changes: 1 addition & 1 deletion seqkmer/src/feat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const M2: u64 = 0xc4ceb9fe1a85ec53;
/// # Examples
///
/// ```
/// # use kr2r::fmix64;
/// # use seqkmer::fmix64;
/// let key: u64 = 123;
/// let hash = fmix64(key);
/// assert_eq!(hash, 9208534749291869864);
Expand Down

0 comments on commit 20a4aee

Please sign in to comment.