Skip to content

Commit 05f2390

Browse files
authored
Fix typos in interpreting-errors.md
1 parent fdb0ed4 commit 05f2390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/errors/interpreting-errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The objective of the succinct error message is to provide an example *convention
3636
```
3737
TS2345: Argument of type '{ foo: number; bar: () => string; }' is not assignable to parameter of type 'SomethingComplex'.
3838
```
39-
It is fairly self explanatory. However, it doesn't provide a deeper breakdown of *why* the error is happening. That is what the *detiled* error message is for.
39+
It is fairly self explanatory. However, it doesn't provide a deeper breakdown of *why* the error is happening. That is what the *detailed* error message is for.
4040

4141
### Detailed
4242
For this example the detailed version looks like:
@@ -47,7 +47,7 @@ Argument of type '{ foo: number; bar: () => string; }' is not assignable to para
4747
Types of property 'bar' are incompatible.
4848
Type '() => string' is not assignable to type 'string'.
4949
```
50-
The objective of the detailed error message is to *guide* the user to the reason why some error (type incompatability in this case) is happening. The first line is same as the succinct, followed by a chain. You should read this chain as a series of responses to the developer question `WHY?` between lines i.e
50+
The objective of the detailed error message is to *guide* the user to the reason why some error (type incompatibility in this case) is happening. The first line is same as the succinct, followed by a chain. You should read this chain as a series of responses to the developer question `WHY?` between lines i.e
5151

5252
```
5353
ERROR: Argument of type '{ foo: number; bar: () => string; }' is not assignable to parameter of type 'SomethingComplex'.

0 commit comments

Comments
 (0)