Skip to content

Commit

Permalink
Fixed mistake in jsdocs types for cloneWithProps
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfb committed Feb 20, 2015
1 parent c889f40 commit bad85fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/cloneWithProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ var CHILDREN_PROP = keyOf({children: null});
* Sometimes you want to change the props of a child passed to you. Usually
* this is to add a CSS class.
*
* @param {object} child child component you'd like to clone
* @param {ReactElement} child child component you'd like to clone
* @param {object} props props you'd like to modify. className and style will be
* merged automatically.
* @return {object} a clone of child with props merged in.
* @return {ReactElement} a clone of child with props merged in.
*/
function cloneWithProps(child, props) {
if (__DEV__) {
Expand Down

0 comments on commit bad85fa

Please sign in to comment.