From 98212602255cc113703fa7eca676dd0b2460b15b Mon Sep 17 00:00:00 2001 From: Stephen Styrchak Date: Mon, 18 Dec 2023 17:34:09 -0800 Subject: [PATCH] Fix typo in README.md (#114) Fix code example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 74e6e84..6a7fe3f 100644 --- a/README.md +++ b/README.md @@ -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,