Skip to content

Commit 7352723

Browse files
davidgilbertsongaearon
authored andcommitted
Fix typos in comments (#11295)
1 parent 3136115 commit 7352723

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/react-reconciler/src/ReactChildFiber.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
508508
expirationTime: ExpirationTime,
509509
): Fiber | null {
510510
if (typeof newChild === 'string' || typeof newChild === 'number') {
511-
// Text nodes doesn't have keys. If the previous node is implicitly keyed
511+
// Text nodes don't have keys. If the previous node is implicitly keyed
512512
// we can continue to replace it without aborting even if it is not a text
513513
// node.
514514
const created = createFiberFromText(
@@ -598,7 +598,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
598598
const key = oldFiber !== null ? oldFiber.key : null;
599599

600600
if (typeof newChild === 'string' || typeof newChild === 'number') {
601-
// Text nodes doesn't have keys. If the previous node is implicitly keyed
601+
// Text nodes don't have keys. If the previous node is implicitly keyed
602602
// we can continue to replace it without aborting even if it is not a text
603603
// node.
604604
if (key !== null) {
@@ -641,7 +641,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
641641
}
642642

643643
case REACT_YIELD_TYPE: {
644-
// Yields doesn't have keys. If the previous node is implicitly keyed
644+
// Yields don't have keys. If the previous node is implicitly keyed
645645
// we can continue to replace it without aborting even if it is not a
646646
// yield.
647647
if (key === null) {
@@ -666,7 +666,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
666666
}
667667

668668
if (isArray(newChild) || getIteratorFn(newChild)) {
669-
// Fragments doesn't have keys so if the previous key is implicit we can
669+
// Fragments don't have keys so if the previous key is implicit we can
670670
// update it.
671671
if (key !== null) {
672672
return null;
@@ -694,7 +694,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
694694
expirationTime: ExpirationTime,
695695
): Fiber | null {
696696
if (typeof newChild === 'string' || typeof newChild === 'number') {
697-
// Text nodes doesn't have keys, so we neither have to check the old nor
697+
// Text nodes don't have keys, so we neither have to check the old nor
698698
// new node for the key. If both are text nodes, they match.
699699
const matchedFiber = existingChildren.get(newIdx) || null;
700700
return updateTextNode(
@@ -734,7 +734,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
734734
}
735735

736736
case REACT_YIELD_TYPE: {
737-
// Yields doesn't have keys, so we neither have to check the old nor
737+
// Yields don't have keys, so we neither have to check the old nor
738738
// new node for the key. If both are yields, they match.
739739
const matchedFiber = existingChildren.get(newIdx) || null;
740740
return updateYield(

0 commit comments

Comments
 (0)