rust/pv_core: Add Error section for decode_hex documentation

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2024-11-07 12:05:10 +00:00
committed by Steffen Eiden
parent 20f1c0e2ea
commit b378ff788e

View File

@@ -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: AsRef<str>>(s: S) -> Result<Vec<u8>> {