From 266848550187d78fa6cb0e71ef8d646dbf7fa6af Mon Sep 17 00:00:00 2001 From: bengreenier Date: Sun, 17 Sep 2023 11:51:32 -0700 Subject: [PATCH] fix(doc): Update readme resolver for doc-string --- crates/partially/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/partially/src/lib.rs b/crates/partially/src/lib.rs index 719fcf6..8e590b7 100644 --- a/crates/partially/src/lib.rs +++ b/crates/partially/src/lib.rs @@ -1,4 +1,4 @@ -#![doc = include_str!("../../../README.md")] +#![doc = include_str!(concat!("../", env!("CARGO_PKG_README")))] /// ## partially_derive /// supports automatically generating a mirrored struct with each field wrapped in [`Option`], and generates a `partially::Partial` implementation that allows applying the [`Some`] fields of the mirrored struct to the base struct.