docs(bevy_render): Remove copy-pasted docstring (#8479)

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.
This commit is contained in:
Æstus Vitæ 2023-04-23 18:46:49 -06:00 committed by GitHub
parent 0a35df13c9
commit a4323d5641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,