diff --git a/docs/md/entity.md b/docs/md/entity.md index 3126fdd5d..42cb4bdea 100644 --- a/docs/md/entity.md +++ b/docs/md/entity.md @@ -765,7 +765,7 @@ the type identifiers and their opaque functions for stamping. As an example: ``` template void stamp(const entt::registry &from, const entt::entity src, entt::registry &to, const entt::entity dst) { - to.assign_or_replace(dst, from.get_or_assign(src)); + to.assign_or_replace(dst, from.get(src)); } ```