Skip to content

Commit

Permalink
Tweak comment wording (#18007)
Browse files Browse the repository at this point in the history
* Revert "Update ReactFiberExpirationTime.js (#17825)"

This reverts commit b63cb6f.

* Reword
  • Loading branch information
gaearon authored Feb 10, 2020
1 parent b63cb6f commit 517de74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberExpirationTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const MAGIC_NUMBER_OFFSET = Batched - 1;

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

Expand Down

0 comments on commit 517de74

Please sign in to comment.