From a4323d56417b11d854d4680b8a7154d3a8ba947e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86stus=20Vit=C3=A6?= Date: Sun, 23 Apr 2023 18:46:49 -0600 Subject: [PATCH] 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. --- crates/bevy_render/src/texture/image.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index 065d35424e..a2424365fe 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -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,