Skip to content

Commit e5a7cec

Browse files
mekhtiarirvagg
authored andcommitted
doc: fix typo in Error.captureStackTrace
PR-URL: #6811 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent c4329aa commit e5a7cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function MyError() {
231231
}
232232

233233
// Without passing MyError to captureStackTrace, the MyError
234-
// frame would should up in the .stack property. by passing
234+
// frame would show up in the .stack property. By passing
235235
// the constructor, we omit that frame and all frames above it.
236236
new MyError().stack
237237
```

0 commit comments

Comments
 (0)