From 12f05e8f72dc75ab33347661dfe91ccc0c5b22ca Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 20 Sep 2021 08:07:05 +0200 Subject: [PATCH] doc: fixed typo (close #784) --- 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 e781c07a2..04fc559fa 100644 --- a/docs/md/entity.md +++ b/docs/md/entity.md @@ -1252,7 +1252,7 @@ As an example: const auto view = registry.view(); output_archive output; -entt::snapshot{registry}.component(output, view.cbegin(), view.cend()); +entt::snapshot{registry}.component(output, view.begin(), view.end()); ``` Note that `component` stores items along with entities. It means that it works