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

Fix "Less than or equal" description #37301

Closed
wants to merge 2 commits into from
Closed

Fix "Less than or equal" description #37301

wants to merge 2 commits into from

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Dec 20, 2024

Description

Fixes an error in the description of the "Less than or equal" operator.

Motivation

Correctness.

Additional details

Related issues and pull requests

Fixes mdn/translated-content-de#30.

@caugner caugner requested a review from a team as a code owner December 20, 2024 16:50
@caugner caugner requested review from Josh-Cena and removed request for a team December 20, 2024 16:50
@github-actions github-actions bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Dec 20, 2024
Copy link
Contributor

Preview URLs

Flaws (6)

URL: /en-US/docs/Web/JavaScript/Reference/Operators/Less_than_or_equal
Title: Less than or equal (<=)
Flaw count: 6

  • macros:
    • Wrong xref macro used (consider changing which macro you use). Error processing path /en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics
    • Wrong xref macro used (consider changing which macro you use). Error processing path /en-US/docs/Learn/JavaScript/First_steps
    • Wrong xref macro used (consider changing which macro you use). Error processing path /en-US/docs/Learn/JavaScript/Building_blocks
    • Wrong xref macro used (consider changing which macro you use). Error processing path /en-US/docs/Learn/JavaScript/Objects
    • Wrong xref macro used (consider changing which macro you use). Error processing path /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks
    • and 1 more flaws omitted

Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Great catch. However it is our intention to make less than the source of truth, which aligns with the spec.

@Josh-Cena
Copy link
Member

Oops, I realized I just reverted all your edits as I make it fit what I believe to be correct, thus verifying that the original content is indeed correct. x <= y is equivalent to !(x > y), which is in turn equivalent to !(y < x).

@Josh-Cena Josh-Cena closed this Dec 20, 2024
@Josh-Cena Josh-Cena deleted the fix-de-30 branch December 20, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Beschreibung vertauscht größer und kleiner
2 participants