Commit 0b42990
committed
doc: fix CCM cipher example in MJS
The original example used 'return' to terminate the current control
flow, which is valid in CommonJS. When the example was copied and
modified to use MJS syntax, the 'return' statement was left in but is
not allowed.
Refs: nodejs#375941 parent 660b1d1 commit 0b42990
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5260 | 5260 | | |
5261 | 5261 | | |
5262 | 5262 | | |
5263 | | - | |
5264 | | - | |
| 5263 | + | |
5265 | 5264 | | |
5266 | 5265 | | |
5267 | 5266 | | |
| |||
5305 | 5304 | | |
5306 | 5305 | | |
5307 | 5306 | | |
5308 | | - | |
5309 | | - | |
| 5307 | + | |
5310 | 5308 | | |
5311 | 5309 | | |
5312 | 5310 | | |
| |||
0 commit comments