munificent / game-programming-patterns

Source repo for the book
http://gameprogrammingpatterns.com/
Other
4.12k stars 498 forks source link

Typo in sidebar of Event Queue: "they array grows" #332

Open ncmiller opened 6 years ago

ncmiller commented 6 years ago

Simple typo here: https://github.com/munificent/game-programming-patterns/blame/04ffbc4fe42a600baa5e293a23c31e9cecead1c5/book/event-queue.markdown#L510

Even though you copy when they array grows, enqueuing an item still has constant amortized complexity.