Skip to content

Commit

Permalink
deprecate init method
Browse files Browse the repository at this point in the history
  • Loading branch information
coriolinus committed Sep 18, 2023
1 parent 6059400 commit ba3fbdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/impls/from_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ where
N: AddAssign + Zero + One,
{
/// Create a new `Counter` initialized with the given iterable.
#[deprecated = "prefer the `FromIterator`/`collect` interface"]
pub fn init<I>(iterable: I) -> Self
where
I: IntoIterator<Item = T>,
Expand Down

0 comments on commit ba3fbdb

Please sign in to comment.