Skip to content

Commit 1ce9691

Browse files
authored
Revert "Update ReactFiberExpirationTime.js (#17825)"
This reverts commit b63cb6f.
1 parent b63cb6f commit 1ce9691

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
@@ -43,7 +43,7 @@ const MAGIC_NUMBER_OFFSET = Batched - 1;
4343

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

0 commit comments

Comments
 (0)