Skip to content

Commit

Permalink
Add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiyukiOkayasu committed Aug 21, 2024
1 parent ca98b74 commit 01299d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ pub struct PcmReader<'a> {
}

impl<'a> PcmReader<'a> {
/// Create a new PcmReader instance.
/// * 'input' - PCM data byte array
pub fn new(input: &'a [u8]) -> Result<Self, LinearPcmError> {
let file_length = input.len();
let mut reader = PcmReader {
Expand Down

0 comments on commit 01299d7

Please sign in to comment.