-
-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Labels
community mistakeMistakes proposed by the communityMistakes proposed by the community
Description
Describe the mistake
In common mistake 29 "Comparing values incorrectly", the note states:
Line 545 in index.md:
We can also use the `?`, `>=`, `<`, and `>` operators with numeric types to compare values and with strings to compare their lexical order.
The ? operator does not exist in Go. This appears to be a typo for <= (less than or equal), which would complete the standard set of comparison operators alongside >=, < and >.
Solution
Fix the note with correct operator usage:
We can also use the `<=`, `>=`, `<`, and `>` operators with numeric types to compare values and with strings to compare their lexical order.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
community mistakeMistakes proposed by the communityMistakes proposed by the community