Skip to content

Commit

Permalink
[write] Fixup doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Oct 21, 2024
1 parent 0e817fe commit c640a8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion write-fonts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
//! you want to modify. For example:
//!
//! ```no_run
//! use write_fonts::ToOwnedTable;
//! use read_fonts::{FontRef, TableProvider};
//! use write_fonts::{from_obj::ToOwnedTable, tables::head::Head, types::LongDateTime};
//! // ...
//! # let font: FontRef<'static> = todo!();
//! # fn seconds_since_font_epoch() -> font_types::LongDateTime { todo!() }
//! let mut head: Head = font.head().expect("missing 'head' table").to_owned_table();
//! head.modified = seconds_since_font_epoch();
//! ```
Expand Down

0 comments on commit c640a8a

Please sign in to comment.