Skip to content

Commit 29bba31

Browse files
authored
Merge pull request #16180 from Fibonacci747/fix/documentation-fromhex-function-behavior
fix: correct fromHex function documentation
2 parents a7e1bac + 6b7413c commit 29bba31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsolutil/CommonData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ int fromHex(char _i, WhenError _throw);
453453

454454
/// Converts a (printable) ASCII hex string into the corresponding byte stream.
455455
/// @example fromHex("41626261") == asBytes("Abba")
456-
/// If _throw = ThrowType::DontThrow, it replaces bad hex characters with 0's, otherwise it will throw an exception.
456+
/// If _throw = WhenError::DontThrow, it returns an empty bytes array on any validation error, otherwise it will throw an exception.
457457
bytes fromHex(std::string const& _s, WhenError _throw = WhenError::DontThrow);
458458
/// Converts byte array to a string containing the same (binary) data. Unless
459459
/// the byte array happens to contain ASCII data, this won't be printable.

0 commit comments

Comments
 (0)