Skip to content

Conversation

@jayanderson
Copy link
Contributor

This fills in some missing docs in the nums package. Let me know if this is on the right track for what's wanted for docs. I can probably fill in more in the future. Thanks.

(As a side note the precedence of the unary negative operator '-' tripped me up for a bit. Essentially I would expect -25.0f32.sqrt() to result in NaN instead of -5.0.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch.

@jayanderson
Copy link
Contributor Author

Thanks for the comment. I switched it to use f32::consts::PI.

bors added a commit that referenced this pull request Nov 12, 2013
This fills in some missing docs in the nums package. Let me know if this is on the right track for what's wanted for docs. I can probably fill in more in the future. Thanks.

(As a side note the precedence of the unary negative operator '-' tripped me up for a bit. Essentially I would expect `-25.0f32.sqrt()` to result in NaN instead of `-5.0`.)
@bors bors closed this Nov 12, 2013
@bors bors merged commit 8a4be80 into rust-lang:master Nov 12, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 6, 2023
…llogiq

Fix `nonminimal_bool` `#[allow]` attributes.

Closes rust-lang#10435
changelog: [`nonminimal_bool`]: Fix false-positive where the lint ignore `#[allow]` attributes.

r? `@llogiq`
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.

3 participants