From 6ec6e77b92d0c4378d1a33030ada53ac7c3590bf Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 7 Jan 2023 13:08:33 +0100 Subject: [PATCH] Parse also errors when TOML parsing fails. --- source/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/lib.rs b/source/lib.rs index 8f15226..20cbe13 100644 --- a/source/lib.rs +++ b/source/lib.rs @@ -27,7 +27,8 @@ return the remaining contents of the string. This function will return an [`Err`] when: - the data doesn't have a frontmatter section, -- the frontmatter isn't at the beginning of the data. +- the frontmatter isn't at the beginning of the data, +- the TOML fails to parse. ## Example