Skip to content

Clarify all-or-nothing CommandBuffer removal - #480

Merged
Ralith merged 1 commit into
Ralith:masterfrom
voidsipp:fix/355-command-buffer-remove-docs
Nov 3, 2026
Merged

Ralith merged 1 commit into
Ralith:masterfrom
voidsipp:fix/355-command-buffer-remove-docs

Conversation

@voidsipp

@voidsipp voidsipp commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

CommandBuffer::remove leaves every component untouched when the entity is missing any component in the requested bundle. The current docs make it sound like it removes whichever components are present.

This clarifies that behavior and adds a runnable example covering both a complete bundle and a missing component. No runtime behavior changes.

Tested with and without default features, including the new doctest. Formatting, documentation with warnings denied, and Clippy with warnings denied also pass.

Fixes #355.

@Ralith Ralith left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

@Ralith
Ralith enabled auto-merge (rebase) November 3, 2026 22:14
@Ralith
Ralith merged commit 29a1127 into Ralith:master Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document CommandBuffer.remove() will not remove any if it does not match all components

2 participants