Skip to content

Commit ebd170b

Browse files
waywardmonkeysfacebook-github-bot
authored andcommitted
Fix typos.
Summary: This fixes a variety of spelling mistakes in file names, identifiers, and comments. X-link: facebook/yoga#1629 Reviewed By: NickGerleman Differential Revision: D54987359 Pulled By: yungsters fbshipit-source-id: 6b7ca20f4855f5f654036672bc10f8b079288acd
1 parent ff5e1a6 commit ebd170b

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ namespace facebook::yoga::vanillajni {
3333
*
3434
* This class is very explicit in its behavior, and it does not allow to perform
3535
* unexpected conversions or unexpected ownership transfer. In practice, this
36-
* class acts as a unique pointer where the underying JNI reference can have one
37-
* and just one owner. Transferring ownership is allowed but it is an explicit
38-
* operation (implemented via move semantics and also via explicitly API calls).
36+
* class acts as a unique pointer where the underlying JNI reference can have
37+
* one and just one owner. Transferring ownership is allowed but it is an
38+
* explicit operation (implemented via move semantics and also via explicitly
39+
* API calls).
3940
*
4041
* Note that this class doesn't receive an explicit JNIEnv at construction time.
4142
* At destruction time it uses vanillajni::getCurrentEnv() to retrieve the

packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ namespace facebook::yoga::vanillajni {
3535
*
3636
* This class is very explicit in its behavior, and it does not allow to perform
3737
* unexpected conversions or unexpected ownership transfer. In practice, this
38-
* class acts as a unique pointer where the underying JNI reference can have one
39-
* and just one owner. Transferring ownership is allowed but it is an explicit
40-
* operation (implemented via move semantics and also via explicitly API calls).
38+
* class acts as a unique pointer where the underlying JNI reference can have
39+
* one and just one owner. Transferring ownership is allowed but it is an
40+
* explicit operation (implemented via move semantics and also via explicitly
41+
* API calls).
4142
*
4243
* As with standard JNI local references it is not a valid operation to keep a
4344
* reference around between different native method calls.

packages/react-native/ReactCommon/yoga/yoga/YGConfig.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ typedef const struct YGNode* YGNodeConstRef;
2525
typedef struct YGConfig* YGConfigRef;
2626

2727
/**
28-
* Handle to an immutable Yoga configruation.
28+
* Handle to an immutable Yoga configuration.
2929
*/
3030
typedef const struct YGConfig* YGConfigConstRef;
3131

@@ -60,7 +60,7 @@ YG_EXPORT void YGConfigSetUseWebDefaults(YGConfigRef config, bool enabled);
6060
YG_EXPORT bool YGConfigGetUseWebDefaults(YGConfigConstRef config);
6161

6262
/**
63-
* Yoga will by deafult round final layout positions and dimensions to the
63+
* Yoga will by default round final layout positions and dimensions to the
6464
* nearst point. `pointScaleFactor` controls the density of the grid used for
6565
* layout rounding (e.g. to round to the closest display pixel).
6666
*
@@ -79,11 +79,11 @@ YG_EXPORT float YGConfigGetPointScaleFactor(YGConfigConstRef config);
7979
* Configures how Yoga balances W3C conformance vs compatibility with layouts
8080
* created against earlier versions of Yoga.
8181
*
82-
* By deafult Yoga will prioritize W3C conformance. `Errata` may be set to ask
82+
* By default Yoga will prioritize W3C conformance. `Errata` may be set to ask
8383
* Yoga to produce specific incorrect behaviors. E.g. `YGConfigSetErrata(config,
8484
* YGErrataStretchFlexBasis)`.
8585
*
86-
* YGErrata is a bitmask, and multiple errata may be set at once. Predfined
86+
* YGErrata is a bitmask, and multiple errata may be set at once. Predefined
8787
* constants exist for convenience:
8888
* 1. YGErrataNone: No errata
8989
* 2. YGErrataClassic: Match layout behaviors of Yoga 1.x

packages/react-native/ReactCommon/yoga/yoga/YGNode.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ YG_EXPORT void YGNodeFreeRecursive(YGNodeRef node);
5656
/**
5757
* Frees the Yoga node without disconnecting it from its owner or children.
5858
* Allows garbage collecting Yoga nodes in parallel when the entire tree is
59-
* unrechable.
59+
* unreachable.
6060
*/
6161
YG_EXPORT void YGNodeFinalize(YGNodeRef node);
6262

@@ -186,7 +186,7 @@ typedef struct YGSize {
186186
} YGSize;
187187

188188
/**
189-
* Returns the computed dimensions of the node, following the contraints of
189+
* Returns the computed dimensions of the node, following the constraints of
190190
* `widthMode` and `heightMode`:
191191
*
192192
* YGMeasureModeUndefined: The parent has not imposed any constraint on the
@@ -199,7 +199,7 @@ typedef struct YGSize {
199199
* child. The child is going to be given those bounds regardless of how big it
200200
* wants to be.
201201
*
202-
* @returns the size of the leaf node, measured under the given contraints.
202+
* @returns the size of the leaf node, measured under the given constraints.
203203
*/
204204
typedef YGSize (*YGMeasureFunc)(
205205
YGNodeConstRef node,
@@ -221,7 +221,7 @@ YG_EXPORT void YGNodeSetMeasureFunc(YGNodeRef node, YGMeasureFunc measureFunc);
221221
YG_EXPORT bool YGNodeHasMeasureFunc(YGNodeConstRef node);
222222

223223
/**
224-
* @returns a defined offet to baseline (ascent).
224+
* @returns a defined offset to baseline (ascent).
225225
*/
226226
typedef float (*YGBaselineFunc)(YGNodeConstRef node, float width, float height);
227227

0 commit comments

Comments
 (0)