summaryrefslogtreecommitdiff
path: root/serde_dhall/src/static_type.rs
diff options
context:
space:
mode:
authorNadrieril2020-04-05 17:12:08 +0100
committerNadrieril2020-04-05 17:12:08 +0100
commitc4d9e73126131d31e707822b0fd8b0710363c863 (patch)
treef3fbc16ba580c865398d90a5d3e2cf9b17e0bbfc /serde_dhall/src/static_type.rs
parent75c0f328c7b6d404353fd078ae12417766ef8a32 (diff)
Final doc tweaks
Diffstat (limited to 'serde_dhall/src/static_type.rs')
-rw-r--r--serde_dhall/src/static_type.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/serde_dhall/src/static_type.rs b/serde_dhall/src/static_type.rs
index 6e76424..f7b72b5 100644
--- a/serde_dhall/src/static_type.rs
+++ b/serde_dhall/src/static_type.rs
@@ -71,7 +71,9 @@ pub trait StaticType {
/// }
/// }
///
- /// let foo: Foo = serde_dhall::from_str("[ 1, 2 ]").static_type_annotation().parse()?;
+ /// let foo = serde_dhall::from_str("[ 1, 2 ]")
+ /// .static_type_annotation()
+ /// .parse::<Foo>()?;
///
/// assert_eq!(foo.0, vec![1, 2]);
/// # Ok(())