Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Dahl committed Oct 31, 2021
1 parent d15bd04 commit fb71908
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const world = World({});

world
.register(Name)
.register(Velocity)
;
.register(Velocity);

// Entities
const bob = world.entity()
Expand Down Expand Up @@ -118,7 +117,7 @@ Attempting to attach to an unknown entity will throw an error.
```ts
const myEntity = world.entity().build();

myEntity.add(Name, myEntity)("Roger");
world.add(Name, myEntity)("Roger");
```
### get
Returns given component for entity. Will return null if not found.
Expand Down

0 comments on commit fb71908

Please sign in to comment.