Skip to content

Commit

Permalink
Fix doctest for add_metadata_opf
Browse files Browse the repository at this point in the history
  • Loading branch information
crowdagger committed Oct 5, 2024
1 parent a6b388f commit a56a95c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/epub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,15 @@ impl<Z: Zip> EpubBuilder<Z> {
/// If you wanna add `<meta name="primary-writing-mode" content="vertical-rl"/>` into `content.opf`
///
/// ```rust
/// self.add_metadata_opf(MetadataOpf {
/// use epub_builder::EpubBuilder;
/// use epub_builder::ZipCommand;
/// use epub_builder::MetadataOpf;
/// let mut builder = EpubBuilder::new(ZipCommand::new().unwrap()).unwrap();
/// builder.add_metadata_opf(MetadataOpf {
/// name: String::from("primary-writing-mode"),
/// content: String::from("vertical-rl")
/// })
/// });
/// ```
///
pub fn add_metadata_opf(&mut self, item: MetadataOpf) -> &mut Self {
Expand Down

0 comments on commit a56a95c

Please sign in to comment.