summaryrefslogtreecommitdiff
path: root/src/eval/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/value.rs')
-rw-r--r--src/eval/value.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs
index 7f31ea13..20636917 100644
--- a/src/eval/value.rs
+++ b/src/eval/value.rs
@@ -619,8 +619,9 @@ impl From<ValueAny> for Value {
/// - [`Cast<Value>`](Cast) for `T`.
///
/// # Example
-/// Make a type `FontFamily` that can be cast from a [`Value::Any`] variant
-/// containing a `FontFamily` or from a string.
+/// Allow a type `FontFamily` to be cast from:
+/// - a [`Value::Any`] variant already containing a `FontFamily`
+/// - a string, producing a `FontFamiliy::Named(..)`.
/// ```
/// # use typst::typify;
/// # enum FontFamily { Named(String) }