Skip to content

Operators, arrows, dashes, units in documentation #353

@dhardy

Description

@dhardy

Describe the bug

A selection of false positives in doc comments:

 15 |  Convert `usize` → `u32`
    |                  ^

 81 |  margin due to side bearings — though this could even be negative).
    |                              ^

 17 |  -   1 *Point* = 1/72 inch (~0.35mm), by the usual DTP standard
    |                ^

 17 |  -   1 *Point* = 1/72 inch (~0.35mm), by the usual DTP standard
    |                             ^

    |
 17 |  -   1 *Point* = 1/72 inch (~0.35mm), by the usual DTP standard
    |                                ^^^^

 17 |  ratio, typically in the 50% - 200% range.
    |                          ^^^
    |   Possible spelling mistake found.

Expected behavior

Characters like arrows and m-dashes should be supported.

Operators like =, ~ and % should be supported outside of code blocks.

Use of units like 0.35mm should be supported outside of code blocks.

Please complete the following information:

  • System: Fedora 42
  • Obtained: cargo install
  • Version: cargo-spellcheck 0.15.5

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions