Skip to content

Commit

Permalink
TakeWhileInclusive::new should not have been public
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet committed Apr 10, 2024
1 parent 6de2f5c commit 37c54d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/take_while_inclusive.rs
Expand Up @@ -21,7 +21,7 @@ where
F: FnMut(&I::Item) -> bool,
{
/// Create a new [`TakeWhileInclusive`] from an iterator and a predicate.
pub fn new(iter: I, predicate: F) -> Self {
pub(crate) fn new(iter: I, predicate: F) -> Self {
Self {
iter,
predicate,
Expand Down

0 comments on commit 37c54d1

Please sign in to comment.