Skip to content

Commit acc3c9f

Browse files
committed
MP4: Fix incomplete example for Atom::into_data
1 parent 1a8ea4d commit acc3c9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/mp4/ilst/atom.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ impl<'a> Atom<'a> {
144144
/// # Examples
145145
///
146146
/// ```rust
147+
/// use lofty::mp4::{Atom, AtomData, AtomIdent};
148+
///
149+
/// let atom = Atom::new(
150+
/// AtomIdent::Fourcc(*b"\x49ART"),
151+
/// AtomData::UTF8(String::from("Foo")),
152+
/// );
153+
/// assert_eq!(atom.into_data().count(), 1);
147154
/// ```
148155
pub fn into_data(self) -> impl Iterator<Item = AtomData> {
149156
self.data.into_iter()

0 commit comments

Comments
 (0)