Skip to content

Commit

Permalink
fix typos in comments (#32061)
Browse files Browse the repository at this point in the history
Summary:
Fixed some typos in the code comments.

## Changelog

[Internal] [Fixed] - Fixed typo in the comments

Pull Request resolved: #32061

Test Plan: N/A

Reviewed By: javache

Differential Revision: D30482511

Pulled By: cortinico

fbshipit-source-id: ff67bc00d57972df88e41ee7a933259673de3aa2
  • Loading branch information
bell-steven authored and facebook-github-bot committed Aug 24, 2021
1 parent d756d43 commit ddf9a63
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
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

0 comments on commit ddf9a63

Please sign in to comment.