From 108c8762060c9d52e295a1e0f9cdeb6c6a44b53e Mon Sep 17 00:00:00 2001 From: Pearce Liang Date: Tue, 4 Oct 2022 10:54:16 -0700 Subject: [PATCH] Fix comment typo 'layed out' to 'laid out' (#1061) Summary: Just a simple typo fix. X-link: https://github.com/facebook/yoga/pull/1061 Reviewed By: javache Differential Revision: D40059940 Pulled By: javache fbshipit-source-id: 052a4a8fe80ff49e059a3096500dbe5bddcb73db --- ReactCommon/yoga/yoga/Yoga.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactCommon/yoga/yoga/Yoga.cpp b/ReactCommon/yoga/yoga/Yoga.cpp index 96ad881e4b2a1c..24907ea0212e12 100644 --- a/ReactCommon/yoga/yoga/Yoga.cpp +++ b/ReactCommon/yoga/yoga/Yoga.cpp @@ -2641,7 +2641,7 @@ static void YGJustifyMainAxis( // but the algorithm below assumes a default of 'column'. // // Input parameters: -// - node: current node to be sized and layed out +// - node: current node to be sized and laid out // - availableWidth & availableHeight: available size to be used for sizing // the node or YGUndefined if the size is not available; interpretation // depends on layout flags @@ -2653,7 +2653,7 @@ static void YGJustifyMainAxis( // for explanation) // - performLayout: specifies whether the caller is interested in just the // dimensions of the node or it requires the entire node and its subtree to -// be layed out (with final positions) +// be laid out (with final positions) // // Details: // This routine is called recursively to lay out subtrees of flexbox @@ -3790,7 +3790,7 @@ bool YGLayoutNodeInternal( // Determine whether the results are already cached. We maintain a separate // cache for layouts and measurements. A layout operation modifies the // positions and dimensions for nodes in the subtree. The algorithm assumes - // that each node gets layed out a maximum of one time per tree layout, but + // that each node gets laid out a maximum of one time per tree layout, but // multiple measurements may be required to resolve all of the flex // dimensions. We handle nodes with measure functions specially here because // they are the most expensive to measure, so it's worth avoiding redundant