Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos in comments #32061

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Libraries/Image/ImageSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Keep this in sync with `DeprecatedImageSourcePropType.js`.
*
* This type is intentinoally inexact in order to permit call sites that supply
* This type is intentionally inexact in order to permit call sites that supply
* extra properties.
*/
export interface ImageURISource {
Expand Down
2 changes: 1 addition & 1 deletion Libraries/UTFSequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const deepFreezeAndThrowOnMutationInDev = require('./Utilities/deepFreezeAndThro
* A collection of Unicode sequences for various characters and emoji.
*
* - More explicit than using the sequences directly in code.
* - Source code should be limitted to ASCII.
* - Source code should be limited to ASCII.
* - Less chance of typos.
*/
const UTFSequence: {|
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Utilities/MatrixMath.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const MatrixMath = {
* This create a perspective projection towards negative z
* Clipping the z range of [-near, -far]
*
* @param fovInRadians - field of view in randians
* @param fovInRadians - field of view in radians
*/
createPerspective: function(fovInRadians, aspect, near, far) {
const h = 1 / Math.tan(fovInRadians / 2);
Expand Down
2 changes: 1 addition & 1 deletion Libraries/vendor/emitter/_EventSubscriptionVendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class EventSubscriptionVendor<EventDefinitions: {...}> {
* Removes a bulk set of the subscriptions.
*
* @param {?string} eventType - Optional name of the event type whose
* registered supscriptions to remove, if null remove all subscriptions.
* registered subscriptions to remove, if null remove all subscriptions.
*/
removeAllSubscriptions<K: $Keys<EventDefinitions>>(eventType: ?K): void {
if (eventType == null) {
Expand Down
2 changes: 1 addition & 1 deletion React/Base/RCTCxxConvert.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* This class provides a collection of conversion functions for mapping
* JSON objects to cxx types. Extensible via categories.
* Convert methods are expected to return cxx objects wraped in RCTManagedPointer.
* Convert methods are expected to return cxx objects wrapped in RCTManagedPointer.
*/

@interface RCTCxxConvert : NSObject
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTSurfacePresenterBridgeAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ facebook::react::RuntimeExecutor RCTRuntimeExecutorFromBridge(RCTBridge *bridge)

/*
* Controls a stored instance of the Bridge. A consumer can re-set the stored Bridge using that method; the class is
* responsible to coordinate this change with a SurfacePresetner accordingly.
* responsible to coordinate this change with a SurfacePresenter accordingly.
*/
@property (nonatomic, weak) RCTBridge *bridge;

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTSurfaceRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typedef void (^RCTSurfaceEnumeratorBlock)(NSEnumerator<RCTFabricSurface *> *enum

/**
* Registry of Surfaces.
* Incapsulates storing Surface objects and querying them by root tag.
* Encapsulates storing Surface objects and querying them by root tag.
* All methods of the registry are thread-safe.
* The registry stores Surface objects as weak references.
*/
Expand Down
2 changes: 1 addition & 1 deletion React/Profiler/RCTProfileTrampoline-arm.S
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ SYMBOL_NAME(RCTProfileTrampoline):

pop {lr} // pop the caller
pop {r0} // pop the return value
bx lr // jump to the calleer
bx lr // jump to the caller

trap

Expand Down
4 changes: 2 additions & 2 deletions React/Profiler/RCTProfileTrampoline-arm64.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SYMBOL_NAME(RCTProfileTrampoline):
/**
* Allocate 16-bytes for the values that have to be preserved across the call
* to the actual function, since the stack has to be in the exact initial
* state. During its lifetimewe use it to store the initial value of the
* state. During its lifetime we use it to store the initial value of the
* callee saved registers we use to point the memory, the actual address of
* the implementation and the caller address.
*/
Expand Down Expand Up @@ -119,7 +119,7 @@ SYMBOL_NAME(RCTProfileTrampoline):
// restore the stack pointer
add sp, sp, #0x20

// jump to the calleer, without a link
// jump to the caller, without a link
br lr

#endif