Skip to content

Commit

Permalink
Fixes JSDoc in Clipboard setString (#36381)
Browse files Browse the repository at this point in the history
Summary:
There was a JSDoc mismatch in `Clipboard.setString` method, `the` was considered as a parameter name, not `content`. Added correct param name and kept the same description as before, separated with a hyphen.

## Changelog

[GENERAL] [FIXED] - Fixes JSDoc in Cliapboard setString

Pull Request resolved: #36381

Test Plan: No tests needed

Reviewed By: yungsters

Differential Revision: D43839086

Pulled By: cortinico

fbshipit-source-id: 126035d9796e66938402704eaf9bc8646ee9b78b
  • Loading branch information
mikemikhaylov authored and facebook-github-bot committed Mar 6, 2023
1 parent e088f81 commit 0ecb4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Components/Clipboard/Clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
* Clipboard.setString('hello world');
* }
* ```
* @param the content to be stored in the clipboard.
* @param {string} content the content to be stored in the clipboard.
*/
setString(content: string) {
NativeClipboard.setString(content);
Expand Down

0 comments on commit 0ecb4e6

Please sign in to comment.