Skip to content

Commit 469190d

Browse files
lpincatargos
authored andcommitted
doc: move util.toUSVString() outside of deprecated group
Refs: https://github.com/nodejs/node/pull/39814/files#r693445849 PR-URL: #39840 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 8eb1135 commit 469190d

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

doc/api/util.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,17 @@ const { read, written } = encoder.encodeInto(src, dest);
13081308

13091309
The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`.
13101310

1311+
## `util.toUSVString(string)`
1312+
<!-- YAML
1313+
added: REPLACEME
1314+
-->
1315+
1316+
* `string` {string}
1317+
1318+
Returns the `string` after replacing any surrogate code points
1319+
(or equivalently, any unpaired surrogate code units) with the
1320+
Unicode "replacement character" U+FFFD.
1321+
13111322
## `util.types`
13121323
<!-- YAML
13131324
added: v10.0.0
@@ -2468,18 +2479,6 @@ const util = require('util');
24682479
util.log('Timestamped message.');
24692480
```
24702481

2471-
2472-
### `util.toUSVString(string)`
2473-
<!-- YAML
2474-
added: REPLACEME
2475-
-->
2476-
2477-
* `string` {string}
2478-
2479-
Returns the `string` after replacing any surrogate code points
2480-
(or equivalently, any unpaired surrogate code units) with the
2481-
Unicode "replacement character" U+FFFD.
2482-
24832482
[Common System Errors]: errors.md#errors_common_system_errors
24842483
[Custom inspection functions on objects]: #util_custom_inspection_functions_on_objects
24852484
[Custom promisified functions]: #util_custom_promisified_functions

0 commit comments

Comments
 (0)