Skip to content

Commit 7eb8873

Browse files
committed
docs(contrib): Update codegen steps
Fixes crate-ci#531
1 parent 4e59b27 commit 7eb8873

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@ to re-work some of it and the discouragement that goes along with that.
3535

3636
Format: `typo,correction[,correction...]`
3737

38-
2. Verify your change
38+
2. Code-gen the dictionary
3939

4040
Run
41-
```bash
42-
cargo run --package typos-dict-verify -- --input crates/typos-dict/assets/words.csv --output crates/typos-dict/assets/words.csv
41+
```console
42+
$ SNAPSHOTS=overwrite cargo test --workspace
4343
```
44-
Auto-cleans up your change according to some rules we have like:
45-
- Don't prefer specific dialects in the dictionary, leaving those to [`varcon`](http://wordlist.aspell.net/varcon-readme/).
46-
- Mixing up corrections and typos
47-
- etc
44+
(we do development-time code-gen to speed up builds)
4845

49-
3. Code-gen the dictionary
46+
3. Verify your change
5047

5148
Run
52-
```bash
53-
cargo run --package typos-dict-codegen -- --output crates/typos-dict/src/dict_codegen.rs
49+
```console
50+
$ cargo test --workspace
5451
```
55-
(we do development-time code-gen to speed up builds)
52+
Auto-cleans up your change according to some rules we have like:
53+
- Don't prefer specific dialects in the dictionary, leaving those to [`varcon`](http://wordlist.aspell.net/varcon-readme/).
54+
- Mixing up corrections and typos
55+
- etc
5656

5757
### Process
5858

0 commit comments

Comments
 (0)