Skip to content

Commit

Permalink
Fix typo in ParagraphLayoutManager (facebook#40872)
Browse files Browse the repository at this point in the history
Summary:

Minor typo fix in ParagraphLayoutManager::shouldMeasureString.

##Changelog:

[General] [Internal]

Reviewed By: rubennorte

Differential Revision: D50227940
  • Loading branch information
rozele authored and facebook-github-bot committed Oct 13, 2023
1 parent 95d09d3 commit b63a24f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TextMeasurement ParagraphLayoutManager::measure(
const ParagraphAttributes& paragraphAttributes,
LayoutConstraints layoutConstraints) const {
if (CoreFeatures::cacheLastTextMeasurement) {
bool shouldMeasure = shoudMeasureString(
bool shouldMeasure = shouldMeasureString(
attributedString, paragraphAttributes, layoutConstraints);

if (shouldMeasure) {
Expand All @@ -38,7 +38,7 @@ TextMeasurement ParagraphLayoutManager::measure(
}
}

bool ParagraphLayoutManager::shoudMeasureString(
bool ParagraphLayoutManager::shouldMeasureString(
const AttributedString& attributedString,
const ParagraphAttributes& paragraphAttributes,
LayoutConstraints layoutConstraints) const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ParagraphLayoutManager {
* text measurement result. Returns true if inputs have changed and measure is
* needed.
*/
bool shoudMeasureString(
bool shouldMeasureString(
const AttributedString& attributedString,
const ParagraphAttributes& paragraphAttributes,
LayoutConstraints layoutConstraints) const;
Expand Down

0 comments on commit b63a24f

Please sign in to comment.