Skip to content

Commit 0073831

Browse files
lpincanodejs-github-bot
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 82ae00c commit 0073831

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
@@ -1306,6 +1306,17 @@ const { read, written } = encoder.encodeInto(src, dest);
13061306

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

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

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

0 commit comments

Comments
 (0)