Open
Description
Initial notes from Discord:
- The first line of doc comments should be a minimal description.
- Details of what the documented function / type do belong in their own paragraphs, separated by a line break.
- If the usage is not immediately clear, or if there are subtle gotchas, add doc tests
- If a method panics, mention that under a Warning header.
- If a method or struct is unsafe, you must include a Safety header
- Link to related types that are commonly used with or are alternatives to the documented type using [
DocLinks
].
These should be stored in a sibling to https://github.com/bevyengine/bevy/blob/main/.github/contributing/engine_style_guide.md, which should be linked in https://github.com/bevyengine/bevy/blob/main/CONTRIBUTING.md