fixed a small typo in the function's doc comment (#7965)

fixed a small typo in the function’s doc comment (#7965)

diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 b/app/assets/javascripts/discourse/lib/plugin-api.js.es6
index 991bf3e..f731ef9 100644
--- a/app/assets/javascripts/discourse/lib/plugin-api.js.es6
+++ b/app/assets/javascripts/discourse/lib/plugin-api.js.es6
@@ -529,7 +529,7 @@ class PluginApi {
 
   /**
    * Exposes the widget creating ability to plugins. Plugins can
-   * register their own plugins and attach them with decorators.
+   * register their own widgets and attach them with decorators.
    * See `createWidget` in `discourse/widgets/widget` for more info.
    **/
   createWidget(name, args) {

GitHub sha: 387016ea