Skip to content

Commit 423688c

Browse files
committed
doc: add ZeroError docs
1 parent 1645ba1 commit 423688c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/source/zero.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use super::SeekError;
66
use crate::common::{ChannelCount, SampleRate};
77
use crate::{Sample, Source};
88

9+
/// Error returned by [`Zero::new_samples`] when `num_samples` is not a
10+
/// multiple of the channel count.
911
#[derive(Debug, thiserror::Error, Clone, PartialEq, Eq)]
1012
#[error("num_samples must be a multiple of the channel count")]
1113
pub struct ZeroError;

0 commit comments

Comments
 (0)