Skip to content

Commit

Permalink
docs: add example docs to fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
LechintanTudor committed Jan 27, 2024
1 parent c466891 commit d4d907c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/components.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Components example.

use sparsey::prelude::*;

#[derive(Clone, Copy, Debug)]
Expand Down
4 changes: 3 additions & 1 deletion examples/layout.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Group layout example.

use sparsey::prelude::*;

#[derive(Clone, Copy, Debug)]
Expand All @@ -10,7 +12,7 @@ struct Sprite {
}

#[derive(Clone, Copy, Debug)]
pub struct Transparent;
struct Transparent;

fn print_sprites(
positions: Comp<Position>,
Expand Down
2 changes: 2 additions & 0 deletions examples/resources.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Resources example.

use sparsey::prelude::*;

#[derive(Clone, Copy, Default, Debug)]
Expand Down

0 comments on commit d4d907c

Please sign in to comment.