Skip to content

Commit 2b9e5f5

Browse files
authored
fix IsHigh trait comment (#1726)
The comment was saying that function informs if the scalar is **"greater or equal to"** whereas the implementation informs if the scalar is **"strictly greater than"**
1 parent 3597746 commit 2b9e5f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elliptic-curve/src/scalar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ pub trait FromUintUnchecked {
4949
/// - For scalars 0 through n / 2: `Choice::from(0)`
5050
/// - For scalars (n / 2) + 1 through n - 1: `Choice::from(1)`
5151
pub trait IsHigh {
52-
/// Is this scalar greater than or equal to n / 2?
52+
/// Is this scalar greater than n / 2?
5353
fn is_high(&self) -> Choice;
5454
}

0 commit comments

Comments
 (0)