Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ Otherwise, to add to the dictionary:

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

2. Code-gen the dictionary
2. Verify (and postprocess) the dictionary
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original intention was to run both steps here and then in Step 3, run the command to verify everything is resolved.

There is the annoying aspect though of needing to run verify before codegen


With `cargo` and `rustfmt` installed, run
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This instruction is for the code-gen one

```console
$ SNAPSHOTS=overwrite cargo test -p typos-dict
$ SNAPSHOTS=overwrite cargo test -p typos-dict verify
```
(we do development-time code-gen to speed up builds)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This belongs in the code-gen section


Expand All @@ -54,11 +54,11 @@ Otherwise, to add to the dictionary:
- Mixing up corrections and typos
- etc

3. Verify your change
3. Code-gen the dictionary

Run
```console
$ cargo test -p typos-dict
$ SNAPSHOTS=overwrite cargo test -p typos-dict codegen
```

### Process
Expand Down