Skip to content

Fix EntityCommands::despawn docs#13774

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
thebluefish:despawn_doc_fix
Jun 9, 2024
Merged

Fix EntityCommands::despawn docs#13774
alice-i-cecile merged 1 commit intobevyengine:mainfrom
thebluefish:despawn_doc_fix

Conversation

@thebluefish
Copy link
Contributor

Objective

The EntityCommands::despawn method was previously changed from panicking behavior to a warning, but the docs continue to state that it panics.

Solution

  • Removed panic section, copied warning blurb from World::despawn
  • Adds a similar warning blurb to DespawnRecursiveExt::despawn_recursive and DespawnRecursiveExt::despawn_descendants

@alice-i-cecile alice-i-cecile added C-Docs An addition or correction to our documentation A-ECS Entities, components, systems, and events labels Jun 9, 2024
@alice-i-cecile alice-i-cecile added this to the 0.14 milestone Jun 9, 2024
@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 9, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jun 9, 2024
Merged via the queue into bevyengine:main with commit 7c9c6ff Jun 9, 2024
mockersf pushed a commit that referenced this pull request Jun 9, 2024
# Objective

The `EntityCommands::despawn` method was previously changed from
panicking behavior to a warning, but the docs continue to state that it
panics.

## Solution

- Removed panic section, copied warning blurb from `World::despawn`
- Adds a similar warning blurb to
`DespawnRecursiveExt::despawn_recursive` and
`DespawnRecursiveExt::despawn_descendants`
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.

2 participants