Skip to content

Commit bb721e5

Browse files
fix doc comment
1 parent a7691d7 commit bb721e5

File tree

1 file changed

+1
-2
lines changed
  • crates/starknet-types-core/src/felt

1 file changed

+1
-2
lines changed

crates/starknet-types-core/src/felt/qm31.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ impl QM31Felt {
162162
}
163163

164164
/// Computes the inverse of a QM31 element in reduced form.
165-
/// # Safety
166-
/// If the value is zero will panic.
165+
/// Returns an error if the operand is equal to zero.
167166
pub fn inverse(&self) -> Result<QM31Felt, QM31Error> {
168167
if *self == Self::ZERO {
169168
return Err(QM31Error::InvalidInversion);

0 commit comments

Comments
 (0)