Skip to content

Commit

Permalink
Fix docs for World.AddFn (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 authored Dec 30, 2024
1 parent ad4aac7 commit 6b4ffd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecs/world.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ func (w *World) Add(entity Entity, comps ...ID) {
// For maximum performance, pre-allocate a slice of component IDs and pass it using ellipsis:
//
// // fast
// world.Add(entity, idA, idB, idC)
// world.AddFn(entity, nil, idA, idB, idC)
// // even faster
// world.Add(entity, ids...)
// world.AddFn(entity, nil, ids...)
//
// See also [World.Add], [World.Exchange] and [World.ExchangeFn].
// See also the generic variants under [github.com/mlange-42/arche/generic.Map1], etc.
Expand Down

0 comments on commit 6b4ffd5

Please sign in to comment.