-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-DocsAn addition or correction to our documentationAn addition or correction to our documentationC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
Description
How can Bevy's documentation be improved?
There is a lack of compiler warning or error when making a typo of using [ ]
instead of ( )
in reflect container attributes like so:
#[reflect(Component)]
vs #[reflect[Component]]
The latter code compiles and produces no indication of the typo to the user, leading to users (aka me lol) going down rabbit holes of bug hunting when their reflection attribute does not work.
I'm not entierly sure where the documentation code lies for this kind of change, but it might possibly lie in this file?
Ideally we should throw an error here in whatever shape that is possible. I'd love to take a stab at this in a PR if its deemed a simple enough fix, i've yet submitted a PR to bevy :)
Metadata
Metadata
Assignees
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-DocsAn addition or correction to our documentationAn addition or correction to our documentationC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
Type
Projects
Status
Open