Skip to content

Commit d475abd

Browse files
committed
corrected input/output syntax for API examples
1 parent 40dc1e9 commit d475abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ Unicode escape characters not in the ASCII character set so that they can be saf
109109
const native2ascii = require('node-native2ascii');
110110

111111
native2ascii('I ♥ native2ascii!');
112-
//=> "I \u2665 native2ascii!"
112+
//=> "I \\u2665 native2ascii!"
113113
```
114114

115115
These can be later unescaped by reversing the operation:
116116

117117
``` javascript
118118
const native2ascii = require('node-native2ascii');
119119

120-
native2ascii('I \u2665 native2ascii!', { reverse: true });
120+
native2ascii('I \\u2665 native2ascii!', { reverse: true });
121121
//=> "I ♥ native2ascii!"
122122
```
123123

0 commit comments

Comments
 (0)