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 some lifetimes (ResMut etc) for clarity #11021

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

stepancheg
Copy link
Contributor

Use 'w for world lifetime consistently.

When implementing system params, useful to look at how other params are implemented. 'w makes it clear it is world, not state.

@ItsDoot ItsDoot added A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change labels Dec 19, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Dec 19, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Dec 19, 2023
Merged via the queue into bevyengine:main with commit 0c2df27 Dec 19, 2023
26 checks passed
@nicopap
Copy link
Contributor

nicopap commented Dec 19, 2023

Thank you for this PR! I lost a lot of time in the past looking up if 'a was for 'w or 's.

@stepancheg stepancheg deleted the res-w branch December 20, 2023 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants