Skip to content

Documentation doesn't show up in certain cases #3757

@DianaNites

Description

@DianaNites

If documentation for an item is separated by newlines, rust-analyzer doesn't recognize it.

This will show "Example" on hover

/// Example
fn test() {}

but this will not.

/// Example

fn test() {}

Ran into this because CString has this problem. Removing the newline immediately works around the issue, but editing the source isn't ideal or persistent.

Environment

rust-analyzer commit 1c2d413
VSCode 1.43.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions