Skip to content

Commit 6ea7491

Browse files
authored
Fix typo in comment (#21214)
1 parent b38ac13 commit 6ea7491

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/react-reconciler/src/ReactFiberCompleteWork.new.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ function completeWork(
992992
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
993993
const primaryChildFragment = workInProgress.child;
994994
if (primaryChildFragment !== null) {
995-
// $FlowFixMe Flow doens't support type casting in combiation with the -= operator
995+
// $FlowFixMe Flow doesn't support type casting in combination with the -= operator
996996
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
997997
}
998998
}
@@ -1022,7 +1022,7 @@ function completeWork(
10221022
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
10231023
const primaryChildFragment = workInProgress.child;
10241024
if (primaryChildFragment !== null) {
1025-
// $FlowFixMe Flow doens't support type casting in combiation with the -= operator
1025+
// $FlowFixMe Flow doesn't support type casting in combination with the -= operator
10261026
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
10271027
}
10281028
}
@@ -1126,7 +1126,7 @@ function completeWork(
11261126
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
11271127
const primaryChildFragment = workInProgress.child;
11281128
if (primaryChildFragment !== null) {
1129-
// $FlowFixMe Flow doens't support type casting in combiation with the -= operator
1129+
// $FlowFixMe Flow doesn't support type casting in combination with the -= operator
11301130
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
11311131
}
11321132
}

packages/react-reconciler/src/ReactFiberCompleteWork.old.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ function completeWork(
992992
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
993993
const primaryChildFragment = workInProgress.child;
994994
if (primaryChildFragment !== null) {
995-
// $FlowFixMe Flow doens't support type casting in combiation with the -= operator
995+
// $FlowFixMe Flow doesn't support type casting in combination with the -= operator
996996
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
997997
}
998998
}
@@ -1022,7 +1022,7 @@ function completeWork(
10221022
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
10231023
const primaryChildFragment = workInProgress.child;
10241024
if (primaryChildFragment !== null) {
1025-
// $FlowFixMe Flow doens't support type casting in combiation with the -= operator
1025+
// $FlowFixMe Flow doesn't support type casting in combination with the -= operator
10261026
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
10271027
}
10281028
}
@@ -1126,7 +1126,7 @@ function completeWork(
11261126
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
11271127
const primaryChildFragment = workInProgress.child;
11281128
if (primaryChildFragment !== null) {
1129-
// $FlowFixMe Flow doens't support type casting in combiation with the -= operator
1129+
// $FlowFixMe Flow doesn't support type casting in combination with the -= operator
11301130
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
11311131
}
11321132
}

0 commit comments

Comments
 (0)