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

Apostrophes in doc_markdown #2210

Closed
dtolnay opened this issue Nov 7, 2017 · 1 comment
Closed

Apostrophes in doc_markdown #2210

dtolnay opened this issue Nov 7, 2017 · 1 comment
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@dtolnay
Copy link
Member

dtolnay commented Nov 7, 2017

pub struct Collection { /* ... */ }

/// An iterator over mycrate::Collection's values.
pub struct Iter { /* ... */ }
warning: you should put `mycrate::Collection's` between ticks in the documentation
   |
   | /// An iterator over mycrate::Collection's values.
   |                      ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(doc_markdown)] on by default
   = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.169/index.html#doc_markdown

I would expect this to recommend `mycrate::Collection`'s instead of `mycrate::Collection's`.

@phansch phansch added the C-bug Category: Clippy is not doing the correct thing label Mar 29, 2018
@mockersf
Copy link
Contributor

issue is here

let word = word.trim_matches(|c: char| !c.is_alphanumeric());

bors added a commit that referenced this issue Dec 12, 2018
flip1995 added a commit to flip1995/rust-clippy that referenced this issue Dec 12, 2018
flip1995 added a commit to flip1995/rust-clippy that referenced this issue Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing
Projects
None yet
Development

No branches or pull requests

3 participants