mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Steffen Eiden
parent
20f1c0e2ea
commit
b378ff788e
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user