mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 22:22:31 +00:00
MP4: Fix incomplete example for Atom::into_data
This commit is contained in:
parent
1a8ea4da77
commit
acc3c9ff11
1 changed files with 7 additions and 0 deletions
|
@ -144,6 +144,13 @@ impl<'a> Atom<'a> {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// use lofty::mp4::{Atom, AtomData, AtomIdent};
|
||||
///
|
||||
/// let atom = Atom::new(
|
||||
/// AtomIdent::Fourcc(*b"\x49ART"),
|
||||
/// AtomData::UTF8(String::from("Foo")),
|
||||
/// );
|
||||
/// assert_eq!(atom.into_data().count(), 1);
|
||||
/// ```
|
||||
pub fn into_data(self) -> impl Iterator<Item = AtomData> {
|
||||
self.data.into_iter()
|
||||
|
|
Loading…
Reference in a new issue