Skip to content

Commit c05b8dd

Browse files
committed
fix comment
1 parent 5dcad6e commit c05b8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/utils/FHESafeMath.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ library FHESafeMath {
5757
}
5858

5959
/**
60-
* @dev Try to subtract `a` and `b`. If the operation is successful, `success` will be true and `res`
61-
* will be the difference of `a` and `b`. Otherwise, `success` will be false, and `res` will be 0.
60+
* @dev Try to subtract `b` from `a`. If the operation is successful, `success` will be true and `res`
61+
* will be `a - b`. Otherwise, `success` will be false, and `res` will be 0.
6262
*/
6363
function trySub(euint64 a, euint64 b) internal returns (ebool success, euint64 res) {
6464
if (!FHE.isInitialized(b)) {

0 commit comments

Comments
 (0)