From c640a8ad3582022f9bef7a32686ed3eff2f08c65 Mon Sep 17 00:00:00 2001 From: Colin Rofls Date: Mon, 21 Oct 2024 11:28:35 -0400 Subject: [PATCH] [write] Fixup doctest --- write-fonts/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/write-fonts/src/lib.rs b/write-fonts/src/lib.rs index afe027af..ec1eb57d 100644 --- a/write-fonts/src/lib.rs +++ b/write-fonts/src/lib.rs @@ -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(); //! ```