From 42c1957aff726b7f0a29eb26e81b69bb50bc4710 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Mon, 9 Mar 2020 15:34:16 -0700 Subject: [PATCH] chore: fix typo in comments (#28269) Summary: Fixed some typos in the comment. ## Changelog [Internal] [Fixed] - Fixed typo in the comments Pull Request resolved: https://github.com/facebook/react-native/pull/28269 Test Plan: Changes are only made in the comments, so test is not necessary. Reviewed By: cpojer Differential Revision: D20342637 Pulled By: shergin fbshipit-source-id: f6e7dd538ee54c43e1570c35e1f8c4502054e328 --- Libraries/TurboModule/RCTExport.js | 2 +- .../com/facebook/hermes/reactexecutor/HermesExecutorFactory.cpp | 2 +- .../java/com/facebook/react/animated/NativeAnimatedModule.java | 2 +- .../facebook/react/devsupport/JSDebuggerWebSocketClient.java | 2 +- .../java/com/facebook/react/views/textinput/ReactEditText.java | 2 +- ReactCommon/fabric/mounting/ShadowTreeDelegate.h | 2 +- ReactCommon/yoga/yoga/YGNode.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Libraries/TurboModule/RCTExport.js b/Libraries/TurboModule/RCTExport.js index b6315f1efd8..f90568d0e5b 100644 --- a/Libraries/TurboModule/RCTExport.js +++ b/Libraries/TurboModule/RCTExport.js @@ -25,7 +25,7 @@ * information, native base classes, etc. For now, simply use `void` type as * there's nothing to give hint about. * - * NOTE: This export is deprecated. Please us TurboModule. + * NOTE: This export is deprecated. Please use TurboModule. */ // eslint-disable-next-line no-unused-vars diff --git a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.cpp b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.cpp index 4824f3d43b0..693a9a1bd73 100644 --- a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.cpp +++ b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.cpp @@ -150,7 +150,7 @@ class DecoratedRuntime : public jsi::WithRuntimeDecorator { public: // The first argument may be another decorater which itself // decorates the real HermesRuntime, depending on the build config. - // The second argument is the the real HermesRuntime as well to + // The second argument is the real HermesRuntime as well to // manage the debugger registration. DecoratedRuntime( std::unique_ptr runtime, diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java index 266cb6037a9..0bdba5d6cca 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java @@ -58,7 +58,7 @@ import java.util.ArrayList; * stores a mapping from the view properties to the corresponding animated values (so it's actually * also a node with connections to the value nodes). * - *

Last "special" elements of the the graph are "animation drivers". Those are objects + *

Last "special" elements of the graph are "animation drivers". Those are objects * (represented as a graph nodes too) that based on some criteria updates attached values every * frame (we have few types of those, e.g., spring, timing, decay). Animation objects can be * "started" and "stopped". Those are like "pulse generators" for the rest of the nodes graph. Those diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java index 22729b34d78..103f22868f5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDebuggerWebSocketClient.java @@ -119,7 +119,7 @@ public class JSDebuggerWebSocketClient extends WebSocketListener { js.beginObject().name("id").value(requestID).name("method").value(methodName); /* JsonWriter does not offer writing raw string (without quotes), that's why - here we directly write to output string using the the underlying StringWriter */ + here we directly write to output string using the underlying StringWriter */ sw.append(",\"arguments\":").append(jsonArgsArray); js.endObject().close(); sendMessage(requestID, sw.toString()); diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java index d388f389674..7d04a3abc68 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java @@ -501,7 +501,7 @@ public class ReactEditText extends AppCompatEditText { // The current text gets replaced with the text received from JS. However, the spans on the // current text need to be adapted to the new text. Since TextView#setText() will remove or // reset some of these spans even if they are set directly, SpannableStringBuilder#replace() is - // used instead (this is also used by the the keyboard implementation underneath the covers). + // used instead (this is also used by the keyboard implementation underneath the covers). SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(reactTextUpdate.getText()); manageSpans(spannableStringBuilder); diff --git a/ReactCommon/fabric/mounting/ShadowTreeDelegate.h b/ReactCommon/fabric/mounting/ShadowTreeDelegate.h index c58170d1662..ae2a0645d7b 100644 --- a/ReactCommon/fabric/mounting/ShadowTreeDelegate.h +++ b/ReactCommon/fabric/mounting/ShadowTreeDelegate.h @@ -20,7 +20,7 @@ class ShadowTree; class ShadowTreeDelegate { public: /* - * Called right after Shadow Tree commit a new state of the the tree. + * Called right after Shadow Tree commit a new state of the tree. */ virtual void shadowTreeDidFinishTransaction( ShadowTree const &shadowTree, diff --git a/ReactCommon/yoga/yoga/YGNode.h b/ReactCommon/yoga/yoga/YGNode.h index 95962e68afa..9aef1ec6833 100644 --- a/ReactCommon/yoga/yoga/YGNode.h +++ b/ReactCommon/yoga/yoga/YGNode.h @@ -73,7 +73,7 @@ private: } // DANGER DANGER DANGER! - // If the the node assigned to has children, we'd either have to deallocate + // If the node assigned to has children, we'd either have to deallocate // them (potentially incorrect) or ignore them (danger of leaks). Only ever // use this after checking that there are no children. // DO NOT CHANGE THE VISIBILITY OF THIS METHOD!