Skip to content

Commit

Permalink
Rename Fields::iter_member to members()
Browse files Browse the repository at this point in the history
The new name is consistent with other iteration initiation methods in
the standard library and ecosystem like .pairs() and .keys() and
.values() and .components().
  • Loading branch information
dtolnay committed Aug 11, 2024
1 parent 8b68c06 commit d94d5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ mod iter_member {
///
/// The return type can considered as impl [`Iterator<Item = Member>`].
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
pub fn iter_member(&self) -> IterMember {
pub fn members(&self) -> IterMember {
IterMember {
iter: self.iter(),
unnamed_counter: 0,
Expand Down

0 comments on commit d94d5b0

Please sign in to comment.