Skip to content

Commit

Permalink
Fix typo in ParagraphLayoutManager
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

fbshipit-source-id: f59ef1008fe5cbb6168781833f80e8b25b2ee8d8
  • Loading branch information
rozele authored and facebook-github-bot committed Oct 12, 2023
1 parent 11d9b9c commit 145f4fe
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 145f4fe

Please sign in to comment.