Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't handle library crates. #47

Closed
meithecatte opened this issue Jun 18, 2020 · 1 comment
Closed

Doesn't handle library crates. #47

meithecatte opened this issue Jun 18, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@meithecatte
Copy link
Contributor

~/tmp$ cargo new testing --lib
     Created library `testing` package
~/tmp$ cd testing/
~/tmp/testing$ ls
Cargo.toml  src
~/tmp/testing$ vi src/lib.rs
~/tmp/testing$ cat src/lib.rs
/// Adds two numbrers.
fn add(a: i32, b: i32) -> i32 {
    a + b
}
~/tmp/testing$ cargo spellcheck
~/tmp/testing$ cargo spellcheck check
~/tmp/testing$ mv src/lib.rs src/main.rs
~/tmp/testing$ cargo spellcheck check
error: spellcheck(Hunspell)
  --> /home/kuba/tmp/testing/src/main.rs:1
   |
 1 |  Adds two numbrers.
   |           ^^^^^^^^
   | - numbers or number
   |
   |   Possible spelling mistake found.
   |

Error: Found 1 potential spelling mistakes

Triaging info

  • Version: 0.2.2
  • Did this used to work? No idea. This is the first time I'm trying to use this tool.
@drahnr
Copy link
Owner

drahnr commented Jun 18, 2020

Good catch, actually one of the unit tests was incorrect. Fixed!

KuabeM pushed a commit to KuabeM/cargo-spellcheck that referenced this issue Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants