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:
parent
55da315432
commit
cb2ba19d97
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user