Skip to content

Commit 208305f

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 <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 6640037 commit 208305f

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

doc/api/util.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,17 @@ const { read, written } = encoder.encodeInto(src, dest);
13041304

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

1307+
## `util.toUSVString(string)`
1308+
<!-- YAML
1309+
added: REPLACEME
1310+
-->
1311+
1312+
* `string` {string}
1313+
1314+
Returns the `string` after replacing any surrogate code points
1315+
(or equivalently, any unpaired surrogate code units) with the
1316+
Unicode "replacement character" U+FFFD.
1317+
13071318
## `util.types`
13081319
<!-- YAML
13091320
added: v10.0.0
@@ -2490,18 +2501,6 @@ const util = require('util');
24902501
util.log('Timestamped message.');
24912502
```
24922503

2493-
2494-
### `util.toUSVString(string)`
2495-
<!-- YAML
2496-
added: REPLACEME
2497-
-->
2498-
2499-
* `string` {string}
2500-
2501-
Returns the `string` after replacing any surrogate code points
2502-
(or equivalently, any unpaired surrogate code units) with the
2503-
Unicode "replacement character" U+FFFD.
2504-
25052504
[Common System Errors]: errors.md#errors_common_system_errors
25062505
[Custom inspection functions on objects]: #util_custom_inspection_functions_on_objects
25072506
[Custom promisified functions]: #util_custom_promisified_functions

0 commit comments

Comments
 (0)