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

Ordering example incorrect [documentation] #5

Closed
awhitford opened this issue Apr 19, 2020 · 1 comment
Closed

Ordering example incorrect [documentation] #5

awhitford opened this issue Apr 19, 2020 · 1 comment
Assignees
Labels

Comments

@awhitford
Copy link

Minor documentation bug for Ordering class. The example:

var natural = new Ordering.natural();
natural.compare(1, 2);  // 1

Wouldn't the compare result be -1 signifying that 1 is less than 2?

@renggli renggli self-assigned this Apr 20, 2020
@renggli renggli added the bug label Apr 20, 2020
@renggli
Copy link
Owner

renggli commented Apr 20, 2020

Thank you for reporting. The example was not only buggy, but it also was no longer working with Dart 2.0+.

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

No branches or pull requests

2 participants