From 511264879616cd5bae10aa7a07dc17aa99f8b34c Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 31 Mar 2020 17:19:47 +0200 Subject: [PATCH] fix documentation (#9327) --- app/assets/javascripts/discourse/lib/plugin-api.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js b/app/assets/javascripts/discourse/lib/plugin-api.js index aaafba5b4ce..b0594f7b8db 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"; + * }); * ``` * **/