Skip to content

Commit 935b242

Browse files
committed
Inverter: doc improvement
1 parent 62e19cf commit 935b242

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/traits.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ pub trait Inverter {
167167
/// Output of an inversion.
168168
type Output;
169169

170-
/// Compute a modular inversion, returning `None` if the result is undefined (i.e. `value` is zero).
170+
/// Compute a modular inversion, returning `None` if the result is undefined (i.e. if `value` is zero or isn't
171+
/// prime relative to the modulus).
171172
fn invert(&self, value: &Self::Output) -> CtOption<Self::Output>;
172173
}
173174

0 commit comments

Comments
 (0)