Skip to content

Commit

Permalink
fix: fix readme usage example.
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinOrange authored Dec 12, 2024
1 parent 090751a commit 73aea0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { parseMdict, DictRecord } from "mdx-dict-parser";

const filePath = "./the/path/to/your/dictionary.mdx";
const data: DictRecord[] = parseMdict(filePath);
const thirdRecord = data[3];
console.log(thirdRecord); // Print the third record.
const firstRecord = data[0];
console.log(firstRecord); // Print the first record.
```

## Roadmap
Expand Down

0 comments on commit 73aea0c

Please sign in to comment.