-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
There was a problem hiding this 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.
/// 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. |
There was a problem hiding this comment.
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 Resource
s right? Since you can't have non-send components.
There was a problem hiding this comment.
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.
Objective
Title.