@samitouri / QOS-React / commits / 73527237e6

Fix typos in comments (#11295)

David Gilbertson committed Oct 20, 2017 at 21:15 UTC 73527237e6eb311de102791bb3fd2922cc28368a
1 file changed +6 -6
packages/react-reconciler/src/ReactChildFiber.js
+6 -6
@@ -508,7 +508,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
508 expirationTime: ExpirationTime,
509 ): Fiber | null {
510 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
512 // we can continue to replace it without aborting even if it is not a text
513 // node.
514 const created = createFiberFromText(
@@ -598,7 +598,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
598 const key = oldFiber !== null ? oldFiber.key : null;
599
600 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
602 // we can continue to replace it without aborting even if it is not a text
603 // node.
604 if (key !== null) {
@@ -641,7 +641,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
641 }
642
643 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
645 // we can continue to replace it without aborting even if it is not a
646 // yield.
647 if (key === null) {
@@ -666,7 +666,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
666 }
667
668 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
670 // update it.
671 if (key !== null) {
672 return null;
@@ -694,7 +694,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
694 expirationTime: ExpirationTime,
695 ): Fiber | null {
696 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
698 // new node for the key. If both are text nodes, they match.
699 const matchedFiber = existingChildren.get(newIdx) || null;
700 return updateTextNode(
@@ -734,7 +734,7 @@ function ChildReconciler(shouldClone, shouldTrackSideEffects) {
734 }
735
736 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
738 // new node for the key. If both are yields, they match.
739 const matchedFiber = existingChildren.get(newIdx) || null;
740 return updateYield(