Skip to content

Commit b5d4078

Browse files
committed
Update README
1 parent a4baea9 commit b5d4078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ includes
1515
However, if `error.stack` is modified, `error.message` is not updated
1616
accordingly. This library fixes it.
1717

18-
On other JavaScript engines, this library just sets `error.stack`.
18+
In other JavaScript engines, this library just sets `error.stack`.
1919

2020
# Example
2121

@@ -40,7 +40,7 @@ const error = new Error('one')
4040
console.log(error.stack) // 'Error: one ...'
4141
console.log(error.message) // 'one'
4242

43-
setErrorStack(stack, error.stack.replace('one', 'two'))
43+
setErrorStack(error, error.stack.replace('one', 'two'))
4444
console.log(error.stack) // 'Error: two ...'
4545
console.log(error.message) // 'two'
4646
```

0 commit comments

Comments
 (0)