Commit 3e8991c
doc: modernize and fix code examples in modules.md
* Replace `var` by `const`.
* Fix semicolons.
* Add missing code marks.
* Unify quotes.
* Comment out ellipsis.
* Use object destructuring.
* Use exponentiation operator.
* Replace snake_case by camelCase.
PR-URL: #12224
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>1 parent 376f5ef commit 3e8991cCopy full SHA for 3e8991c
File tree
Expand file treeCollapse file tree
1 file changed
+13
-13
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+13
-13
lines changedOpen diff view settings
Collapse file
+13-13Lines changed: 13 additions & 13 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
| 57 | + |
58 | 58 | |
59 | | - |
| 59 | + |
60 | 60 | |
61 | 61 | |
62 | | - |
| 62 | + |
63 | 63 | |
64 | 64 | |
65 | 65 | |
| ||
142 | 142 | |
143 | 143 | |
144 | 144 | |
145 | | - |
| 145 | + |
146 | 146 | |
147 | 147 | |
148 | 148 | |
| ||
565 | 565 | |
566 | 566 | |
567 | 567 | |
568 | | - |
569 | | - |
| 568 | + |
| 569 | + |
570 | 570 | |
571 | 571 | |
572 | | - |
573 | | - |
| 572 | + |
| 573 | + |
574 | 574 | |
575 | 575 | |
576 | | - |
577 | | - |
| 576 | + |
| 577 | + |
578 | 578 | |
579 | 579 | |
580 | 580 | |
|
0 commit comments