Skip to content

Commit 0e556fe

Browse files
mitermayerflarnie
authored andcommitted
Adding the correct argument name to documentation tag (#10529)
1 parent c39a976 commit 0e556fe

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/isomorphic/modern/class/ReactNoopUpdateQueue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var ReactNoopUpdateQueue = {
5858
*
5959
* @param {ReactClass} publicInstance The instance that should rerender.
6060
* @param {?function} callback Called after component is updated.
61-
* @param {?string} Name of the calling function in the public API.
61+
* @param {?string} callerName name of the calling function in the public API.
6262
* @internal
6363
*/
6464
enqueueForceUpdate: function(publicInstance, callback, callerName) {
@@ -75,7 +75,7 @@ var ReactNoopUpdateQueue = {
7575
* @param {ReactClass} publicInstance The instance that should rerender.
7676
* @param {object} completeState Next state.
7777
* @param {?function} callback Called after component is updated.
78-
* @param {?string} Name of the calling function in the public API.
78+
* @param {?string} callerName name of the calling function in the public API.
7979
* @internal
8080
*/
8181
enqueueReplaceState: function(

src/renderers/dom/shared/eventPlugins/BeforeInputEventPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function extractCompositionEvent(
273273
}
274274

275275
/**
276-
* @param {string} topLevelType Record from `BrowserEventConstants`.
276+
* @param {TopLevelTypes} topLevelType Record from `BrowserEventConstants`.
277277
* @param {object} nativeEvent Native browser event.
278278
* @return {?string} The string corresponding to this `beforeInput` event.
279279
*/

src/renderers/dom/stack/client/ReactMount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function internalGetID(node) {
8585
/**
8686
* Mounts this component and inserts it into the DOM.
8787
*
88-
* @param {ReactComponent} componentInstance The instance to mount.
88+
* @param {ReactComponent} wrapperInstance The instance to mount.
8989
* @param {DOMElement} container DOM element to mount into.
9090
* @param {ReactReconcileTransaction} transaction
9191
* @param {boolean} shouldReuseMarkup If true, do not insert markup

src/renderers/dom/stack/server/ReactServerUpdateQueue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ReactServerUpdateQueue {
7474
*
7575
* @param {ReactClass} publicInstance The instance that should rerender.
7676
* @param {?function} callback Called after component is updated.
77-
* @param {?string} Name of the calling function in the public API.
77+
* @param {?string} callerName Name of the calling function in the public API.
7878
* @internal
7979
*/
8080
enqueueForceUpdate(

src/renderers/shared/stack/reconciler/ReactReconciler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ var ReactReconciler = {
3232
*
3333
* @param {ReactComponent} internalInstance
3434
* @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
35-
* @param {?object} the containing host component instance
36-
* @param {?object} info about the host container
35+
* @param {?object} hostParent the containing host component instance
36+
* @param {?object} hostContainerInfo info about the host container
3737
* @return {?string} Rendered markup to be inserted into the DOM.
3838
* @final
3939
* @internal

src/renderers/shared/stack/reconciler/ReactUpdateQueue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ var ReactUpdateQueue = {
123123
*
124124
* @param {ReactClass} publicInstance The instance that should rerender.
125125
* @param {?function} callback Called after component is updated.
126-
* @param {?string} Name of the calling function in the public API.
126+
* @param {?string} callerName Name of the calling function in the public API.
127127
* @internal
128128
*/
129129
enqueueForceUpdate: function(publicInstance, callback, callerName) {

0 commit comments

Comments
 (0)