Skip to content

Commit

Permalink
Fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Dec 2, 2024
1 parent a76e0ec commit b3b32fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dynamic/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl<C> Builder<C> {
///
/// let builder = Builder::new().with_comparator(Descend::new());
///
/// assert_eq!(builder.comparator(), &Descend);
/// assert_eq!(builder.comparator(), &Descend::new());
/// ```
#[inline]
pub fn with_comparator<NC>(self, cmp: NC) -> Builder<NC> {
Expand Down
2 changes: 1 addition & 1 deletion src/generic/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl<C> Builder<C> {
/// ```rust
/// use skl::generic::{Builder, Ascend};
///
/// let builder = Builder::new().with_comparator(Ascend::<Vec<u8>>::new());
/// let builder = Builder::<Ascend<[u8]>>::new().with_comparator(Ascend::<Vec<u8>>::new());
///
/// assert_eq!(builder.comparator(), &Ascend::<Vec<u8>>::new());
/// ```
Expand Down

0 comments on commit b3b32fe

Please sign in to comment.