fix documentation (#9327)

fix documentation (#9327)

diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js b/app/assets/javascripts/discourse/lib/plugin-api.js
index aaafba5..b0594f7 100644
--- a/app/assets/javascripts/discourse/lib/plugin-api.js
+++ b/app/assets/javascripts/discourse/lib/plugin-api.js
@@ -1027,11 +1027,9 @@ class PluginApi {
    * For example, to replace the topic title:
    *
    * `‍``
-   * api.decorateTopicTitle(
-   *   (topicModel, node, topicTitleType) => {
-   *     node.innerText("my new topic title");
-   *   }
-   * );
+   * api.decorateTopicTitle((topicModel, node, topicTitleType) => {
+   *   node.innerText = "my new topic title";
+   * });
    * `‍``
    *
    **/

GitHub sha: 51126487

This commit appears in #9327 which was merged by jjaffeux.