Skip to content

Commit 33e8c97

Browse files
committed
fixed writer/reader example code
1 parent 8516724 commit 33e8c97

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/io.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ type Result<T> = std::result::Result<T, Error>;
2828
/// );
2929
///
3030
/// let mut reader = ReaderBuilder::new(Path::new("my_file.mp4"))
31-
/// .with_options(&options.into())
32-
/// .unwrap();
31+
/// .with_options(&options.into())
32+
/// .build()
33+
/// .unwrap();
3334
/// ```
3435
pub struct ReaderBuilder<'a> {
3536
source: Location,
@@ -280,8 +281,9 @@ impl<'a> WriterBuilder<'a> {
280281
/// );
281282
///
282283
/// let mut writer = WriterBuilder::new(Path::new("my_file.mp4"))
283-
/// .with_options(&options.into())
284-
/// .unwrap();
284+
/// .with_options(&options.into())
285+
/// .build()
286+
/// .unwrap();
285287
/// ```
286288
pub struct Writer {
287289
pub destination: Location,

0 commit comments

Comments
 (0)