Skip to content

Commit dc5ae7b

Browse files
author
Haseeb
committed
Update ReactFiberExpirationTime.js
replaced 'add' with 'subtract'
1 parent 4f480d0 commit dc5ae7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactFiberExpirationTime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const MAGIC_NUMBER_OFFSET = Batched - 1;
4444

4545
// 1 unit of expiration time represents 10ms.
4646
export function msToExpirationTime(ms: number): ExpirationTime {
47-
// Always add an offset so that we don't clash with the magic number for NoWork.
47+
// Always subtract an offset so that we don't clash with the magic number for NoWork.
4848
return MAGIC_NUMBER_OFFSET - ((ms / UNIT_SIZE) | 0);
4949
}
5050

0 commit comments

Comments
 (0)