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

Rename the NaN and is_NaN methods to lowercase. #9321

Merged
merged 1 commit into from
Sep 20, 2013

Conversation

chris-morgan
Copy link
Member

This is for consistency in naming conventions.

  • std::num::Float::NaN() is changed to nan();
  • std::num::Float.is_NaN() is changed to is_nan(); and
  • std::num::strconv::NumStrConv::NaN() is changed to nan().

Fixes #9319.

This is for consistency in naming conventions.

- ``std::num::Float::NaN()`` is changed to ``nan()``;
- ``std::num::Float.is_NaN()`` is changed to ``is_nan()``; and
- ``std::num::strconv::NumStrConv::NaN()`` is changed to ``nan()``.

Fixes rust-lang#9319.
bors added a commit that referenced this pull request Sep 20, 2013
This is for consistency in naming conventions.

- ``std::num::Float::NaN()`` is changed to ``nan()``;
- ``std::num::Float.is_NaN()`` is changed to ``is_nan()``; and
- ``std::num::strconv::NumStrConv::NaN()`` is changed to ``nan()``.

Fixes #9319.
@brendanzab
Copy link
Member

Thanks for this, that was my bad. :)

cc. #4819

@bors bors closed this Sep 20, 2013
@bors bors merged commit d9874c0 into rust-lang:master Sep 20, 2013
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.

Make NaN() and is_NaN() method names lowercase
4 participants