diff --git a/evm/src/util.rs b/evm/src/util.rs index 7a635c0e..43545a6b 100644 --- a/evm/src/util.rs +++ b/evm/src/util.rs @@ -70,7 +70,7 @@ pub(crate) fn u256_to_u64(u256: U256) -> Result<(F, F), ProgramError> )) } -/// Safe alternative to `U256::as_u8()`, which errors in case of overflow instead of panicking. +/// Safe conversion from U256 to u8, which errors in case of overflow instead of panicking. pub(crate) fn u256_to_u8(u256: U256) -> Result { u256.try_into().map_err(|_| ProgramError::IntegerTooLarge) }