Fix typo in comment (#21214)
inokawa committed
Apr 9, 2021 at 12:20 UTC
6ea749170b6d59b8dfb8bbbb8d05d986099e7830
2 files changed
+6
-6
packages/react-reconciler/src/ReactFiberCompleteWork.new.js
+3
-3
@@ -992,7 +992,7 @@ function completeWork(
992
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
993
const primaryChildFragment = workInProgress.child;
994
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
996
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
997
}
998
}
@@ -1022,7 +1022,7 @@ function completeWork(
1022
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
1023
const primaryChildFragment = workInProgress.child;
1024
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
1026
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
1027
}
1028
}
@@ -1126,7 +1126,7 @@ function completeWork(
1126
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
1127
const primaryChildFragment = workInProgress.child;
1128
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
1130
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
1131
}
1132
}
packages/react-reconciler/src/ReactFiberCompleteWork.old.js
+3
-3
@@ -992,7 +992,7 @@ function completeWork(
992
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
993
const primaryChildFragment = workInProgress.child;
994
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
996
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
997
}
998
}
@@ -1022,7 +1022,7 @@ function completeWork(
1022
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
1023
const primaryChildFragment = workInProgress.child;
1024
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
1026
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
1027
}
1028
}
@@ -1126,7 +1126,7 @@ function completeWork(
1126
// Don't count time spent in a timed out Suspense subtree as part of the base duration.
1127
const primaryChildFragment = workInProgress.child;
1128
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
1130
workInProgress.treeBaseDuration -= ((primaryChildFragment.treeBaseDuration: any): number);
1131
}
1132
}