Skip to content

Commit

Permalink
rename Texture to Image in doc of from_buffer function (#3713)
Browse files Browse the repository at this point in the history
This doc link was missed when changing the type name.

Noticed in #3706 which will not be merged
  • Loading branch information
mockersf committed Jan 18, 2022
1 parent 55da315 commit cb2ba19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/texture/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cb2ba19

Please sign in to comment.