Skip to content

Commit

Permalink
Improve code snippet in README to support Unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Sep 3, 2020
1 parent d2f8503 commit 8c3df59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Here is an example where the app sends a simple response, so there's no need for
```js
// Reverse all messages the app can hear
app.message(async ({ message, say }) => {
const reversedText = message.text.split('').reverse().join('');
const reversedText = [...message.text].reverse().join("");
await say(reversedText);
});
```
Expand Down

0 comments on commit 8c3df59

Please sign in to comment.