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

correct typo in min/max deprecation warnings #3031

Closed
wants to merge 1 commit into from

Conversation

maggiepint
Copy link
Member

It would be better that we suggest people use min to find the min, and max to find the max.

@mattjohnsonpint
Copy link
Contributor

Actually, it's intentional. The order is swapped. The docs have it correct, but we used to have the deprecation messages wrong. See #2946, which just went in with 2.12.0.

Maybe we could find a better way to phrase it.

@maggiepint
Copy link
Member Author

Well, it was found while I was writing docs about deprecation warnings, so I'll certainly fit that in.

@mattjohnsonpint
Copy link
Contributor

The old functions, the ones we deprecated, were not intuitive. You'd think max would return the later of the two moments, which it does now. But the old function would return the earlier of them.

The idea with the old ones was a maximum constraint - meaning "return me the value that is no larger than this one".

@maggiepint
Copy link
Member Author

Well... I'm glad that is deprecated.

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

Successfully merging this pull request may close these issues.

None yet

2 participants