From b378ff788eb3ebebf1d616fd9d11f915a5ce41eb Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Thu, 7 Nov 2024 12:05:10 +0000 Subject: [PATCH] rust/pv_core: Add Error section for decode_hex documentation Signed-off-by: Marc Hartmayer Signed-off-by: Steffen Eiden --- rust/pv_core/src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/pv_core/src/utils.rs b/rust/pv_core/src/utils.rs index 06ce0e9a..a193fdc2 100644 --- a/rust/pv_core/src/utils.rs +++ b/rust/pv_core/src/utils.rs @@ -335,6 +335,8 @@ usize_to_ui! { /// Converts the hexstring into a byte vector. /// +/// # Errors +/// /// Raises an error if a non-hex character was found or the length was not a /// multiple of two. pub fn decode_hex>(s: S) -> Result> {