From 87e1e710258aa066a017f71836ec4cf3f37b0446 Mon Sep 17 00:00:00 2001 From: Stephen Styrchak Date: Thu, 30 Nov 2023 08:08:36 -0800 Subject: [PATCH] Fix typo in README.md Fix code example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4054acf..41d377f 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,