Skip to content

Commit

Permalink
fixed code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed Oct 27, 2024
1 parent 37c8c04 commit e49a93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/code/snippets/src/resource/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn block_and_wait(texture_resource: Resource<Texture>) {
}
// ANCHOR_END: block_and_wait

// ANCHOR: embedded_resource
// ANCHOR: embedded_texture
fn embedded_resource() -> Option<Resource<Texture>> {
let data = include_bytes!("texture.png");
TextureResource::load_from_memory(
Expand All @@ -54,4 +54,4 @@ fn embedded_resource() -> Option<Resource<Texture>> {
)
.ok()
}
// ANCHOR_END: embedded_resource
// ANCHOR_END: embedded_texture

0 comments on commit e49a93c

Please sign in to comment.