From e7521445e98f9986a4f90cd82e6cceca90d4f7a7 Mon Sep 17 00:00:00 2001 From: Paul Gruenbacher Date: Fri, 6 Mar 2020 16:58:15 -0500 Subject: [PATCH] doc: update stamp example (#442) --- docs/md/entity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } ```