Commit 561c14b
doc: modernize and fix code examples in util.md
* Remove useless constructor.
* Use template literals.
* Update code example.
Now all arrays with just holes are outputted the same way.
In the fixed example, it was `[ <101 empty items> ]` twice.
PR-URL: #13298
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent 830049f commit 561c14b
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 199 | | |
203 | 200 | | |
204 | 201 | | |
| |||
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
332 | | - | |
333 | | - | |
| 329 | + | |
| 330 | + | |
334 | 331 | | |
335 | 332 | | |
336 | 333 | | |
| |||
392 | 389 | | |
393 | 390 | | |
394 | 391 | | |
395 | | - | |
| 392 | + | |
396 | 393 | | |
397 | 394 | | |
398 | 395 | | |
| |||
0 commit comments