Skip to content

Commit

Permalink
Fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Feb 28, 2022
1 parent 24ff00f commit b268826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ We also provide a lower level API to get the actual segment that matches our lin
`originalPositionFor`, `traceSegment` uses a 0-base for `line`:

```typescript
import { originalPositionFor } from '@jridgewell/trace-mapping';
import { traceSegment } from '@jridgewell/trace-mapping';

// line is 0-base.
const traced = traceSegment(tracer, /* line */ 0, /* column */ 5);
Expand Down

0 comments on commit b268826

Please sign in to comment.