瀏覽代碼

doc: fixed typo (close #784)

Michele Caini 4 年之前
父節點
當前提交
12f05e8f72
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/md/entity.md

+ 1 - 1
docs/md/entity.md

@@ -1252,7 +1252,7 @@ As an example:
 const auto view = registry.view<serialize>();
 output_archive output;
 
-entt::snapshot{registry}.component<a_component, another_component>(output, view.cbegin(), view.cend());
+entt::snapshot{registry}.component<a_component, another_component>(output, view.begin(), view.end());
 ```
 
 Note that `component` stores items along with entities. It means that it works