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

Document every public item in bevy_ecs #8731

Merged
merged 65 commits into from
Jun 10, 2023
Merged

Conversation

JoJoJet
Copy link
Member

@JoJoJet JoJoJet commented May 31, 2023

Objective

Title.

@JoJoJet JoJoJet requested a review from james7132 June 3, 2023 01:13
Copy link
Contributor

@nicopap nicopap left a comment

Choose a reason for hiding this comment

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

LGTM excellent doc.

Minor nits:

  • The first sentence in a doc string should be separated from the rest by an empty line
  • I'd rather want to see doc strings not exceed the 80th column (I see this in a few place even if you generally keep them below 80 columns)

But it's a clear improvement regardless, so, to me, it looks good to merge.

Comment on lines +253 to +255
/// Returns `true` if the underlying component type can be freely shared between threads.
/// If this returns `false`, then extra care must be taken to ensure that components
/// are not accessed from the wrong thread.
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm not mistaken, this is only relevant to Resources right? Since you can't have non-send components.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, resources are the only kind of component that can be !Send. ComponentInfo doesn't make a distinction between resource-components and entity-components, though.

crates/bevy_ecs/src/component.rs Outdated Show resolved Hide resolved
crates/bevy_ecs/src/schedule/executor/simple.rs Outdated Show resolved Hide resolved
@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 Jun 10, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jun 10, 2023
Merged via the queue into bevyengine:main with commit 32faf4c Jun 10, 2023
@JoJoJet JoJoJet deleted the ecs-docs branch June 11, 2023 00: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-Docs An addition or correction to our documentation 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.

6 participants