From fae19c6a1ba6d52b8b1079c35f7af16c4d9aa1ab Mon Sep 17 00:00:00 2001 From: Neal Fachan Date: Mon, 14 Oct 2024 15:32:31 -0700 Subject: [PATCH] Fix doctests. --- crates/maelstrom-util/src/cache/fs/test.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/maelstrom-util/src/cache/fs/test.rs b/crates/maelstrom-util/src/cache/fs/test.rs index 781521be..2de29719 100644 --- a/crates/maelstrom-util/src/cache/fs/test.rs +++ b/crates/maelstrom-util/src/cache/fs/test.rs @@ -20,18 +20,19 @@ use strum::Display; /// /// Here is an example that illustrates most of the features: /// ``` -/// fs! { +/// use maelstrom_util::fs; +/// let entry = fs! { /// subdir { /// file_in_subdir(b"123"), /// symlink_in_subdir -> "../subdir2", /// nested_subdir { -/// file_in_nested_subdir(43), +/// file_in_nested_subdir(b"contents"), /// }, /// }, /// "subdir2" {}, /// "file"(b"456"), /// "symlink" -> "subdir", -/// } +/// }; /// ``` /// /// More specifically, this macro expects an "entry list". An entry list consists of zero or more