Skip to content

Commit

Permalink
fix comments of markUpdateLaneFromFiberToRoot (facebook#20546)
Browse files Browse the repository at this point in the history
  • Loading branch information
neroneroffy authored and koto committed Jun 15, 2021
1 parent a440142 commit 25d1501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberWorkLoop.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ function markUpdateLaneFromFiberToRoot(
warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
}
}
// Walk the parent path to the root and update the child expiration time.
// Walk the parent path to the root and update the child lanes.
let node = sourceFiber;
let parent = sourceFiber.return;
while (parent !== null) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberWorkLoop.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ function markUpdateLaneFromFiberToRoot(
warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
}
}
// Walk the parent path to the root and update the child expiration time.
// Walk the parent path to the root and update the child lanes.
let node = sourceFiber;
let parent = sourceFiber.return;
while (parent !== null) {
Expand Down

0 comments on commit 25d1501

Please sign in to comment.