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

tutorial.md : correct formula in fn area() #9459

Merged
merged 1 commit into from
Sep 28, 2013
Merged

tutorial.md : correct formula in fn area() #9459

merged 1 commit into from
Sep 28, 2013

Conversation

eliovir
Copy link
Contributor

@eliovir eliovir commented Sep 24, 2013

change formula (other solution could be using abs()).

change formula (other solution could be using abs()).
@sanxiyn
Copy link
Member

sanxiyn commented Sep 24, 2013

Well, that depends on coordinate system, doesn't it? SDL uses upper left origin, for example.

@kud1ing
Copy link

kud1ing commented Sep 24, 2013

That's why i like the idea of specifying rectangles by using one coordinate (e.g. top-left) and the 2 dimensions width and height.

@bstrie
Copy link
Contributor

bstrie commented Sep 28, 2013

Approving this since it's correct for the typical cartesian plane (...and because it's a saturday morning and bors is idle). If you feel that the example needs to be changed more substantially, send a PR of your own!

bors added a commit that referenced this pull request Sep 28, 2013
change formula (other solution could be using abs()).
@bors bors closed this Sep 28, 2013
@bors bors merged commit 835960a into rust-lang:master Sep 28, 2013
@eliovir eliovir deleted the patch-1 branch September 29, 2013 11:40
flip1995 pushed a commit to flip1995/rust that referenced this pull request Oct 6, 2022
Fix ICE in `needless_pass_by_value` with unsized `dyn Fn`

fixes rust-lang#9459

Not really sure why a query for a type implementing `FnOnce` even works since the trait if `FnOnce<T>`, but it seems to. I would have expected it to crash like it does when passing `dyn FnOnce()` as the type.

changelog: [`needless_pass_by_value`](https://rust-lang.github.io/rust-clippy/master/#needless_pass_by_value) Fix ICE in with unsized `dyn Fn` argument
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.

5 participants