Skip to content

Commit

Permalink
Merge pull request #4 from yuk1ty/fix-params
Browse files Browse the repository at this point in the history
Resolve unexpected compilation error on passing parameter
  • Loading branch information
PROMETHIA-27 authored Aug 5, 2024
2 parents 58762d5 + 70b9aba commit c94680a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chapter1/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ trait ErasedSystem {
impl<S: System<I>, I> ErasedSystem for S {
fn run(&mut self, resources: &mut HashMap<TypeId, Box<dyn Any>>) {
<Self as System<I>>::run(self);
<Self as System<I>>::run(self, resources);
}
}
```
Expand Down Expand Up @@ -377,4 +377,4 @@ fn foo(int: i32) {

It prints `int! 12` like we want! And the user would never actually see their function get called. Mission success?

Yes, but there's obviously some rough edges. It permanently removes resources from the store each run, we have a max limit on parameters, etc, etc. We can do better, and I'll come back to this later to add some more.
Yes, but there's obviously some rough edges. It permanently removes resources from the store each run, we have a max limit on parameters, etc, etc. We can do better, and I'll come back to this later to add some more.

0 comments on commit c94680a

Please sign in to comment.