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

Spaceship operator (<=>) incorrectly displays rendered as ligature <⇒ in docs #442

Open
sambostock opened this issue Feb 14, 2024 · 0 comments

Comments

@sambostock
Copy link

sambostock commented Feb 14, 2024

This bug is with the documentation for, so I've opted not to use the template, as it doesn't really make sense.

In the documentation for Performance/RedundantSortBlock, the following snippet

Identifies places where sort { |a, b| a <=> b } can be replaced with sort.

is incorrectly rendered as a partial ligature

Identifies places where sort { |a, b| a <⇒ b } can be replaced with sort.

-sort { |a, b| a <=> b }
+sort { |a, b| a <⇒ b }

The documentation comment in the source code from which this is generated is correct.

# Identifies places where `sort { |a, b| a <=> b }` can be replaced with `sort`.

I have not checked for other occurrences, or if this affects cops outside rubocop-performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant