rename Texture to Image in doc of from_buffer function (#3713)

This doc link was missed when changing the type name.

Noticed in https://github.com/bevyengine/bevy/pull/3706 which will not be merged
This commit is contained in:
François 2022-01-18 01:28:09 +00:00
parent 55da315432
commit cb2ba19d97

View File

@ -188,7 +188,7 @@ impl Image {
.map(super::image_texture_conversion::image_to_texture)
}
/// Load a bytes buffer in a [`Texture`], according to type `image_type`, using the `image`
/// Load a bytes buffer in a [`Image`], according to type `image_type`, using the `image`
/// crate
pub fn from_buffer(buffer: &[u8], image_type: ImageType) -> Result<Image, TextureError> {
let format = match image_type {