Skip to content

Commit

Permalink
fix comments of markUpdateLaneFromFiberToRoot (#20546)
Browse files Browse the repository at this point in the history
  • Loading branch information
neroneroffy authored Feb 11, 2021
1 parent 47dd9f4 commit 6cdc359
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 6cdc359

Please sign in to comment.