Skip to content

Commit

Permalink
docs(bevy_render): Remove copy-pasted docstring (#8479)
Browse files Browse the repository at this point in the history
This line does not appear to be an intended part of the `Panics`
section, but instead looks like it was missed when copy-pasting a
`Panics` section from above.

It confused me when I was reading the docs. At first I read it as if it
was an imperative statement saying not to use `match` statements which
seemed odd and out of place. Once I saw the code it was clearly in err.

# Objective

- Cleanup documentation string to reduce end-user confusion.
  • Loading branch information
Estus-Dev committed Apr 24, 2023
1 parent 0a35df1 commit a4323d5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/bevy_render/src/texture/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ impl Image {
///
/// # Panics
/// Panics if the size of the `format` is not a multiple of the length of the `pixel` data.
/// do not match.
pub fn new_fill(
size: Extent3d,
dimension: TextureDimension,
Expand Down

0 comments on commit a4323d5

Please sign in to comment.