Skip to content

Apostrophes in doc_markdown #2210

@dtolnay

Description

@dtolnay
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`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions