From e957d4f224be35ac909bb3b45c6c562c51ea059f Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Thu, 12 Oct 2023 10:21:33 -0700 Subject: [PATCH] Fix typo in ParagraphLayoutManager (#40872) Summary: Minor typo fix in ParagraphLayoutManager::shouldMeasureString. ##Changelog: [General] [Internal] Reviewed By: rubennorte Differential Revision: D50227940 --- .../react/renderer/components/text/ParagraphLayoutManager.cpp | 4 ++-- .../react/renderer/components/text/ParagraphLayoutManager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.cpp b/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.cpp index 715a1d2798b8a2..2dfd5dd6bdf94a 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.cpp @@ -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) { @@ -38,7 +38,7 @@ TextMeasurement ParagraphLayoutManager::measure( } } -bool ParagraphLayoutManager::shoudMeasureString( +bool ParagraphLayoutManager::shouldMeasureString( const AttributedString& attributedString, const ParagraphAttributes& paragraphAttributes, LayoutConstraints layoutConstraints) const { diff --git a/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.h b/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.h index 475b16791d54a6..5ce955820e55b5 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.h +++ b/packages/react-native/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.h @@ -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;