Skip to content

Commit

Permalink
Fix typo in README.md (#114)
Browse files Browse the repository at this point in the history
Fix code example.
  • Loading branch information
badcorporatelogo authored Dec 19, 2023
1 parent c9b15f4 commit 9821260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Components can be added and removed through `Entry` objects.
query := donburi.NewQuery(filter.Contains(PlayerTag))
// Query.First() returns only the first entity that
// matches the query.
if entry, ok := donburi.First(world); ok {
if entry, ok := query.First(world); ok {
donburi.Add(entry, Position, &PositionData{
X: 100,
Y: 100,
Expand Down

0 comments on commit 9821260

Please sign in to comment.