瀏覽代碼

doc: minor changes

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

+ 3 - 3
docs/md/entity.md

@@ -731,8 +731,8 @@ There are two aliases that use `entt::entity` as their default entity:
 Users can also easily create their own aliases for custom identifiers as:
 Users can also easily create their own aliases for custom identifiers as:
 
 
 ```cpp
 ```cpp
-using my_handle = entt::basic_handle<my_identifier>;
-using my_const_handle = entt::basic_handle<const my_identifier>;
+using my_handle = entt::basic_handle<entt::basic_registry<my_identifier>>;
+using my_const_handle = entt::basic_handle<const entt::basic_registry<my_identifier>>;
 ```
 ```
 
 
 Handles are also implicitly convertible to const handles out of the box but not
 Handles are also implicitly convertible to const handles out of the box but not
@@ -773,7 +773,7 @@ organizer.emplace(+[](const void *, entt::registry &) { /* ... */ });
 These are the parameters that a free function or a member function can accept:
 These are the parameters that a free function or a member function can accept:
 
 
 * A possibly constant reference to a registry.
 * A possibly constant reference to a registry.
-* An `entt::basic_view` with any possible combination of types.
+* An `entt::basic_view` with any possible combination of storage classes.
 * A possibly constant reference to any type `T` (that is, a context variable).
 * A possibly constant reference to any type `T` (that is, a context variable).
 
 
 The function type for free functions and decayed lambdas passed as parameters to
 The function type for free functions and decayed lambdas passed as parameters to