@@ -313,10 +313,9 @@ impl ConstantTimeGreater for FieldElement {
313313 /// If self > other return Choice(1), otherwise return Choice(0)
314314 ///
315315 fn ct_gt ( & self , other : & FieldElement ) -> Choice {
316-
317- // One possible failure for is if self.or other falls in 0..18
316+ // One possible failure for is if self or other falls in 0..18
318317 // as s+p in 2^255-19..2^255-1. We can check this by
319- // converting to bytes and then back to FieldElement,
318+ // converting to bytes and then back to FieldElement,
320319 // since our encoding routine is canonical the returned value
321320 // will always be compared properly.
322321 let a = FieldElement :: from_bytes ( & self . as_bytes ( ) ) ;
@@ -520,11 +519,13 @@ mod test {
520519 // 2^255 - 1 = 18
521520 let low_high_val = <[ u8 ; 32 ] >:: from_hex (
522521 "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ,
523- ) . expect ( "should never fail" ) ;
522+ )
523+ . expect ( "should never fail" ) ;
524524 // 32
525525 let higher_low_val = <[ u8 ; 32 ] >:: from_hex (
526526 "0000000000000000000000000000000000000000000000000000000000000020" ,
527- ) . expect ( "should never fail" ) ;
527+ )
528+ . expect ( "should never fail" ) ;
528529
529530 let cases = [
530531 ( FieldElement :: ONE , FieldElement :: ZERO , true ) ,
0 commit comments